Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",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.0009727/0.0009729, allocations: 92.72 kB / 16.3 MB, free: 5.992 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.001042/0.001043, allocations: 185.4 kB / 17.2 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 6.281 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 50.43 MB / 351.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.InitialConditions): time 0.002352/0.1091, allocations: 1.975 MB / 353.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004101/0.1096, allocations: 271.2 kB / 353.5 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1097, allocations: 7.938 kB / 353.5 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.256e-05/0.1097, allocations: 31.77 kB / 353.5 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.1099, allocations: 107.7 kB / 353.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001419/0.1101, allocations: 39.97 kB / 353.7 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.1103, allocations: 219.5 kB / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.1105, allocations: 69.7 kB / 353.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.1106, allocations: 103.6 kB / 354 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.1108, allocations: 111.5 kB / 354.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.82e-05/0.1108, allocations: 16 kB / 354.2 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.397e-05/0.1109, allocations: 12 kB / 354.2 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.364e-05/0.1109, allocations: 47.81 kB / 354.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.227e-05/0.111, allocations: 81.58 kB / 354.3 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.1112, allocations: 227.3 kB / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1112, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1112, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1112, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006993/0.1119, allocations: 0.5184 MB / 355 MB, free: 7.812 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.112, allocations: 8.031 kB / 355 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.229e-05/0.112, allocations: 62.53 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/0.1121, allocations: 35.58 kB / 355.1 MB, free: 7.699 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.1124, allocations: 238.6 kB / 355.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.1124, allocations: 20.56 kB / 355.4 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.1124, allocations: 27.91 kB / 355.4 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.1128, allocations: 250.6 kB / 355.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.1128, allocations: 3.938 kB / 355.7 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.1129, allocations: 15.94 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1129, allocations: 15.89 kB / 355.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.1132, allocations: 175.9 kB / 355.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.1142, allocations: 0.7499 MB / 356.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.1146, allocations: 272.9 kB / 356.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.1146, allocations: 7.953 kB / 356.9 MB, free: 5.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.1147, allocations: 38.56 kB / 356.9 MB, free: 5.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=36): time 1.714e-06/0.1147, allocations: 4 kB / 356.9 MB, free: 5.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=48): time 0.002498/0.1172, allocations: 1.714 MB / 358.7 MB, free: 3.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.1172, allocations: 85.06 kB / 358.7 MB, free: 3.785 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.1174, allocations: 190 kB / 358.9 MB, free: 3.586 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.1174, allocations: 33.7 kB / 359 MB, free: 3.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.814e-05/0.1175, allocations: 136.7 kB / 359.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.1176, allocations: 181.4 kB / 359.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.1177, allocations: 12 kB / 359.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1178, allocations: 338.8 kB / 359.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1179, allocations: 105 kB / 359.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.1181, allocations: 149.5 kB / 359.9 MB, free: 2.609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1183, allocations: 126.3 kB / 360 MB, free: 2.488 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.1183, allocations: 4 kB / 360 MB, free: 2.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004649/0.1188, allocations: 362.6 kB / 360.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1188, allocations: 4 kB / 360.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1188, allocations: 0 / 360.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1189, allocations: 4 kB / 360.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.1192, allocations: 107.8 kB / 360.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1192, allocations: 3.953 kB / 360.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1194, allocations: 12 kB / 360.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.1194, allocations: 20 kB / 360.5 MB, free: 1.977 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (58): * Single equations (assignments): 58 * 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.0001274/0.1195, allocations: 153.8 kB / 360.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.1196, allocations: 31.62 kB / 360.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.458e-05/0.1197, allocations: 41.86 kB / 360.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1197, allocations: 4 kB / 360.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1197, allocations: 0 / 360.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1197, allocations: 3.953 kB / 360.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.1209, allocations: 0.9466 MB / 361.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1209, allocations: 0 / 361.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.1213, allocations: 99.95 kB / 361.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1213, allocations: 7.938 kB / 361.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.1214, allocations: 8 kB / 361.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1214, allocations: 4 kB / 361.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1214, allocations: 3.938 kB / 361.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/0.1221, allocations: 0.6719 MB / 362.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.709e-05/0.1222, allocations: 104.7 kB / 362.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.065e-05/0.1222, allocations: 15.95 kB / 362.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.1224, allocations: 8 kB / 362.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.1224, allocations: 23.97 kB / 362.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.1225, allocations: 12 kB / 362.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.1226, allocations: 140.3 kB / 362.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1226, allocations: 0 / 362.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000352/0.1229, allocations: 80 kB / 362.8 MB, free: 15.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (m1.s,m1.v,sd1.s_rel,sd1.v_rel,sd2.s_rel,sd2.v_rel,m4.s,m4.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 (48): * Single equations (assignments): 48 * 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.00107/0.124, allocations: 1.435 MB / 364.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.1245, allocations: 287.8 kB / 364.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.1245, allocations: 0 / 364.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.1247, allocations: 162.9 kB / 364.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.1252, allocations: 52.22 kB / 364.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.1283, allocations: 2.604 MB / 367.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.1287, allocations: 0.7845 MB / 368.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.1288, allocations: 42.88 kB / 368.2 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.129, allocations: 99.34 kB / 368.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.129, allocations: 0 / 368.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.1524, allocations: 5.505 MB / 373.8 MB, free: 4.562 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002904/0.1527, allocations: 191.6 kB / 374 MB, free: 4.328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.841, allocations: 0 / 374 MB, free: 4.328 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat does not exist to compare? outputFormat=mat