Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007572/0.0007572, allocations: 93.69 kB / 16.95 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008331/0.0008331, allocations: 179.5 kB / 17.84 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004698/0.0004701, allocations: 12.94 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002848/0.1143, allocations: 2.014 MB / 330.5 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1156, allocations: 0.5933 MB / 331.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.1159, allocations: 4 kB / 331.1 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.1161, allocations: 31.7 kB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.1163, allocations: 55.53 kB / 331.1 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.1166, allocations: 51.89 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.1169, allocations: 230.9 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.1172, allocations: 65.36 kB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.1174, allocations: 87.69 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1176, allocations: 87.56 kB / 331.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.1176, allocations: 12 kB / 331.7 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.719e-05/0.1177, allocations: 12 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.744e-05/0.1177, allocations: 35.84 kB / 331.7 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.28e-05/0.1178, allocations: 69.58 kB / 331.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.118, allocations: 183.7 kB / 332 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.118, allocations: 0 / 332 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.118, allocations: 0 / 332 MB, free: 456 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1181, allocations: 3.938 kB / 332 MB, free: 452 kB / 270.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.0008481/0.1189, allocations: 498.9 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.119, allocations: 12.03 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.554e-05/0.1191, allocations: 54.53 kB / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.037e-05/0.1191, allocations: 23.72 kB / 332.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.1194, allocations: 239.2 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1195, allocations: 20.44 kB / 332.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.1195, allocations: 27.98 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.12, allocations: 213.3 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1201, allocations: 4 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.1201, allocations: 4 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1201, allocations: 4 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.1204, allocations: 160.4 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.1217, allocations: 0.7918 MB / 334 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.1221, allocations: 205 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.1223, allocations: 109.7 kB / 334.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.1224, allocations: 4 kB / 334.3 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1224, allocations: 38.55 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.1224, allocations: 0 / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.001651/0.1241, allocations: 0.8852 MB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.1241, allocations: 89.05 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.1243, allocations: 182.1 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1244, allocations: 29.64 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.735e-05/0.1245, allocations: 140.4 kB / 335.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.138e-05/0.1245, allocations: 90.66 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.1245, allocations: 4 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1247, allocations: 326.8 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.1249, allocations: 75.95 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.125, allocations: 112.2 kB / 336.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.1252, allocations: 87.94 kB / 336.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1252, allocations: 0 / 336.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004324/0.1257, allocations: 249.5 kB / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1257, allocations: 12.05 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.1257, allocations: 0 / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1257, allocations: 4 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.126, allocations: 67.83 kB / 336.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.126, allocations: 8.062 kB / 336.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1261, allocations: 15.94 kB / 336.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1261, allocations: 12 kB / 336.7 MB, free: 11.34 MB / 286.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.0001285/0.1263, allocations: 133.8 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.297e-05/0.1264, allocations: 27.72 kB / 336.9 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.743e-05/0.1264, allocations: 29.81 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1264, allocations: 0 / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.1265, allocations: 4 kB / 336.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1265, allocations: 0 / 336.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008261/0.1273, allocations: 0.5826 MB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.1273, allocations: 8 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.1276, allocations: 59.91 kB / 337.5 MB, free: 10.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.1276, allocations: 4 kB / 337.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.1276, allocations: 3.984 kB / 337.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1276, allocations: 8.094 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1276, allocations: 0 / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006397/0.1283, allocations: 0.493 MB / 338 MB, free: 9.883 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.862e-05/0.1284, allocations: 104.8 kB / 338.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.1284, allocations: 8 kB / 338.2 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.1286, allocations: 8.031 kB / 338.2 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.1287, allocations: 23.92 kB / 338.2 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.1287, allocations: 11.98 kB / 338.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.1288, allocations: 132.3 kB / 338.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 0 / 338.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003436/0.1291, allocations: 48 kB / 338.4 MB, free: 9.535 MB / 286.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.0009333/0.1301, allocations: 1.038 MB / 339.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003631/0.1305, allocations: 183.7 kB / 339.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.1305, allocations: 4 kB / 339.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.1307, allocations: 100.2 kB / 339.7 MB, free: 8.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.1312, allocations: 36.17 kB / 339.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.1336, allocations: 1.603 MB / 341.3 MB, free: 6.469 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1339, allocations: 0.7445 MB / 342.1 MB, free: 5.699 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.1341, allocations: 21.95 kB / 342.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.1342, allocations: 71.41 kB / 342.2 MB, free: 5.605 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1342, allocations: 0 / 342.2 MB, free: 5.605 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04693/0.1811, allocations: 3.905 MB / 346.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.1814, allocations: 186.7 kB / 346.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.164, allocations: 0 / 346.3 MB, free: 1.469 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat