Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007668/0.0007667, allocations: 103.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008774/0.0008777, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246 MB, free: 11.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002537, allocations: 4 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1243, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002585/0.1269, allocations: 2.033 MB / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009398/0.1279, allocations: 0.6001 MB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.128, allocations: 4 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.1281, allocations: 27.77 kB / 361 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.1283, allocations: 63.42 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.1285, allocations: 51.94 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.1287, allocations: 230.9 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.1289, allocations: 81.31 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.1291, allocations: 79.66 kB / 361.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.1293, allocations: 95.59 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.1293, allocations: 12 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.1294, allocations: 12 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.814e-05/0.1295, allocations: 35.84 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.144e-05/0.1295, allocations: 65.58 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.1297, allocations: 183.8 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/0.1298, allocations: 4 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1298, allocations: 0 / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1298, allocations: 4 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006824/0.1305, allocations: 494.9 kB / 362.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1305, allocations: 12.03 kB / 362.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.32e-05/0.1306, allocations: 58.55 kB / 362.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.1308, allocations: 51.69 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.1311, allocations: 227.4 kB / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.1311, allocations: 16.44 kB / 362.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.1312, allocations: 27.86 kB / 362.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.1316, allocations: 221.3 kB / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1316, allocations: 8 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.1317, allocations: 4 kB / 363 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.1317, allocations: 4 kB / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.132, allocations: 156.5 kB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.1333, allocations: 0.7918 MB / 363.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.1337, allocations: 205 kB / 364.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.134, allocations: 105.7 kB / 364.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.134, allocations: 7.938 kB / 364.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.1341, allocations: 42.48 kB / 364.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.003e-06/0.1341, allocations: 3.938 kB / 364.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001745/0.1359, allocations: 0.8785 MB / 365.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.136, allocations: 85.06 kB / 365.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.1362, allocations: 178.2 kB / 365.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1362, allocations: 29.7 kB / 365.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.1363, allocations: 144.3 kB / 365.6 MB, free: 6.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-05/0.1364, allocations: 94.66 kB / 365.7 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.1364, allocations: 4 kB / 365.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1366, allocations: 326.8 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.1367, allocations: 67.97 kB / 366.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.1369, allocations: 116.2 kB / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.137, allocations: 78.86 kB / 366.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1371, allocations: 3.984 kB / 366.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004217/0.1375, allocations: 245.3 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1375, allocations: 4 kB / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1375, allocations: 0 / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1375, allocations: 4 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.1378, allocations: 63.91 kB / 366.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.1378, allocations: 16.03 kB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1379, allocations: 19.84 kB / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.1379, allocations: 8 kB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.1381, allocations: 135.4 kB / 366.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.939e-05/0.1381, allocations: 19.81 kB / 366.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.806e-05/0.1382, allocations: 29.86 kB / 366.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1382, allocations: 3.938 kB / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1382, allocations: 4 kB / 366.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.1383, allocations: 7.953 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008199/0.1391, allocations: 0.5815 MB / 367.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1391, allocations: 8.031 kB / 367.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.1394, allocations: 59.86 kB / 367.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1394, allocations: 4 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.1394, allocations: 4 kB / 367.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.1394, allocations: 4 kB / 367.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.1394, allocations: 3.984 kB / 367.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006697/0.1401, allocations: 0.4939 MB / 368 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.376e-05/0.1402, allocations: 96.92 kB / 368.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.1402, allocations: 15.95 kB / 368.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.1404, allocations: 12.03 kB / 368.1 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.356e-05/0.1405, allocations: 15.98 kB / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.1405, allocations: 8 kB / 368.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1406, allocations: 135.2 kB / 368.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1406, allocations: 0 / 368.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.141, allocations: 52 kB / 368.3 MB, free: 3.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009516/0.1419, allocations: 1.046 MB / 369.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.1423, allocations: 184.4 kB / 369.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1423, allocations: 0 / 369.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.1425, allocations: 99.83 kB / 369.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.143, allocations: 36.48 kB / 369.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.1454, allocations: 1.598 MB / 371.2 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2196/0.365, allocations: 0.7398 MB / 372 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.3652, allocations: 22.5 kB / 372 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3654, allocations: 67.72 kB / 372.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3654, allocations: 0 / 372.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.3818, allocations: 3.914 MB / 376 MB, free: 18.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.382, allocations: 188.3 kB / 376.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.228, allocations: 3.828 kB / 376.2 MB, free: 18.51 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat