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.0009445/0.0009445, allocations: 97.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009492/0.0009492, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 11.98 kB / 306.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 51.5 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002347/0.1175, allocations: 1.955 MB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009729/0.1185, allocations: 0.6081 MB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.968e-05/0.1187, allocations: 4 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.661e-05/0.1187, allocations: 31.77 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.1189, allocations: 71.77 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.1191, allocations: 55.94 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.1194, allocations: 171.6 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1195, allocations: 77.31 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.1197, allocations: 79.72 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.1199, allocations: 99.53 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.1199, allocations: 12 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.515e-05/0.12, allocations: 12 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.12, allocations: 35.84 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.1201, allocations: 69.58 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.1202, allocations: 179.7 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1203, allocations: 0 / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1203, allocations: 0 / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1203, allocations: 0 / 361.6 MB, free: 10.33 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.0006657/0.1209, allocations: 0.4911 MB / 362.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.121, allocations: 12.03 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.121, allocations: 50.55 kB / 362.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.1213, allocations: 55.69 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1216, allocations: 227.3 kB / 362.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.1216, allocations: 16.44 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.1216, allocations: 31.86 kB / 362.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003519/0.122, allocations: 213.3 kB / 362.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.122, allocations: 0 / 362.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1221, allocations: 12 kB / 362.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-06/0.1221, allocations: 4 kB / 362.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.1224, allocations: 156.4 kB / 362.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.1236, allocations: 0.7996 MB / 363.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.124, allocations: 201 kB / 363.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.124, allocations: 7.984 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.124, allocations: 38.56 kB / 363.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.124, allocations: 0 / 363.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001496/0.1255, allocations: 0.8789 MB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.1256, allocations: 81.05 kB / 364.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.1257, allocations: 182.1 kB / 365.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.1258, allocations: 37.7 kB / 365.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.1259, allocations: 140.3 kB / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/0.1259, allocations: 94.66 kB / 365.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.1259, allocations: 4 kB / 365.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.642e-05/0.126, allocations: 326.8 kB / 365.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.1262, allocations: 71.95 kB / 365.7 MB, free: 5.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1264, allocations: 108.2 kB / 365.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.1265, allocations: 80.3 kB / 365.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.1266, allocations: 4 kB / 365.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003858/0.1269, allocations: 253.2 kB / 366.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.127, allocations: 7.938 kB / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.127, allocations: 0 / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.127, allocations: 4 kB / 366.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1273, allocations: 67.98 kB / 366.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.096e-06/0.1273, allocations: 4 kB / 366.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1274, allocations: 19.86 kB / 366.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.1275, allocations: 8 kB / 366.3 MB, free: 5.324 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.00011/0.1276, allocations: 148.8 kB / 366.4 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/0.1276, allocations: 19.81 kB / 366.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.683e-05/0.1277, allocations: 25.88 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1277, allocations: 4 kB / 366.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1277, allocations: 4 kB / 366.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1277, allocations: 3.984 kB / 366.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007683/0.1285, allocations: 0.5787 MB / 367.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1285, allocations: 4 kB / 367.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.1288, allocations: 59.91 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.1288, allocations: 4 kB / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.1288, allocations: 11.95 kB / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1288, allocations: 0 / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1289, allocations: 4 kB / 367.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.1295, allocations: 0.5448 MB / 367.7 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.1296, allocations: 92.83 kB / 367.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.1296, allocations: 8 kB / 367.8 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1298, allocations: 19.97 kB / 367.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.1298, allocations: 19.94 kB / 367.8 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1298, allocations: 8 kB / 367.8 MB, free: 3.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.474e-05/0.1299, allocations: 131.2 kB / 368 MB, free: 3.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1299, allocations: 0 / 368 MB, free: 3.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.1303, allocations: 48 kB / 368 MB, free: 3.457 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.0009125/0.1312, allocations: 1.377 MB / 369.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.1315, allocations: 184 kB / 369.6 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1315, allocations: 4 kB / 369.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.1317, allocations: 95.84 kB / 369.7 MB, free: 1.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.1321, allocations: 38.27 kB / 369.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1691/0.3013, allocations: 2.182 MB / 371.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.3015, allocations: 0.7513 MB / 372.6 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.3016, allocations: 21.44 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.175e-05/0.3017, allocations: 69.48 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3017, allocations: 0.7188 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.4061, allocations: 3.868 MB / 376.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/0.4062, allocations: 188 kB / 376.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.327, allocations: 1.438 kB / 376.8 MB, free: 18.11 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