Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001628/0.001633, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003908, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003103/0.1083, allocations: 1.799 MB / 376.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005705/0.1089, allocations: 191.4 kB / 376.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.109, allocations: 7.938 kB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.716e-05/0.1091, allocations: 27.83 kB / 376.7 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.1094, allocations: 63.84 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.1096, allocations: 43.91 kB / 376.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.1099, allocations: 159.7 kB / 376.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1101, allocations: 81.98 kB / 377 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.1102, allocations: 71.73 kB / 377.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.1104, allocations: 91.59 kB / 377.2 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.1105, allocations: 15.94 kB / 377.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.1106, allocations: 15.94 kB / 377.2 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.929e-05/0.1106, allocations: 35.86 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.355e-05/0.1107, allocations: 61.58 kB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.111, allocations: 191.7 kB / 377.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.111, allocations: 4 kB / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.111, allocations: 0 / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1111, allocations: 0 / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.000958/0.112, allocations: 479.2 kB / 377.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1121, allocations: 8.031 kB / 377.9 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.952e-05/0.1122, allocations: 54.55 kB / 378 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.935e-05/0.1123, allocations: 23.72 kB / 378 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.1126, allocations: 230.6 kB / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.1126, allocations: 20.52 kB / 378.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.1127, allocations: 20 kB / 378.3 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.1133, allocations: 228.3 kB / 378.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.1133, allocations: 4 kB / 378.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.1134, allocations: 8 kB / 378.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1134, allocations: 8 kB / 378.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/0.1138, allocations: 136.7 kB / 378.7 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1155, allocations: 0.8594 MB / 379.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004052/0.1159, allocations: 151.7 kB / 379.7 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.116, allocations: 0 / 379.7 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.116, allocations: 42.52 kB / 379.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.194e-06/0.116, allocations: 0 / 379.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005713/0.1166, allocations: 177.5 kB / 379.9 MB, free: 9.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.312e-05/0.1167, allocations: 102.8 kB / 380 MB, free: 9.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.117, allocations: 202.6 kB / 380.2 MB, free: 9.523 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.117, allocations: 29.7 kB / 380.2 MB, free: 9.488 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1172, allocations: 218.2 kB / 380.4 MB, free: 9.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.039e-05/0.1173, allocations: 63.09 kB / 380.5 MB, free: 9.207 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.1173, allocations: 4 kB / 380.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1175, allocations: 326.8 kB / 380.8 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1176, allocations: 44.55 kB / 380.9 MB, free: 8.828 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.1179, allocations: 154.8 kB / 381 MB, free: 8.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.1182, allocations: 75.94 kB / 381.1 MB, free: 8.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1182, allocations: 3.938 kB / 381.1 MB, free: 8.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006199/0.1188, allocations: 233.9 kB / 381.3 MB, free: 8.316 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1189, allocations: 7.953 kB / 381.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1189, allocations: 4.438 kB / 381.3 MB, free: 8.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.011e-05/0.1189, allocations: 12 kB / 381.3 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.1194, allocations: 59.91 kB / 381.4 MB, free: 8.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.1194, allocations: 15.88 kB / 381.4 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.1197, allocations: 27.69 kB / 381.4 MB, free: 8.191 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.126e-05/0.1197, allocations: 16 kB / 381.5 MB, free: 8.176 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * 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.0002114/0.1199, allocations: 133.7 kB / 381.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.545e-05/0.12, allocations: 19.81 kB / 381.6 MB, free: 8.016 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.218e-05/0.1201, allocations: 29.34 kB / 381.6 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1201, allocations: 4 kB / 381.6 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1202, allocations: 4 kB / 381.6 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1202, allocations: 0 / 381.6 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008375/0.121, allocations: 420.9 kB / 382.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.121, allocations: 0 / 382.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.1214, allocations: 43.92 kB / 382.1 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.1215, allocations: 4 kB / 382.1 MB, free: 7.453 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.1215, allocations: 8.094 kB / 382.1 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.1215, allocations: 4 kB / 382.1 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1215, allocations: 0 / 382.1 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000629/0.1222, allocations: 424.3 kB / 382.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.055e-05/0.1223, allocations: 101 kB / 382.6 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.1223, allocations: 4 kB / 382.6 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1225, allocations: 7.984 kB / 382.6 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.1226, allocations: 15.94 kB / 382.7 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.1226, allocations: 4 kB / 382.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1228, allocations: 148.3 kB / 382.8 MB, free: 6.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1228, allocations: 0 / 382.8 MB, free: 6.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005428/0.1234, allocations: 51.94 kB / 382.9 MB, free: 6.629 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,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 (17): * Single equations (assignments): 17 * 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.00115/0.1245, allocations: 1.219 MB / 384.1 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004472/0.125, allocations: 142.3 kB / 384.2 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.125, allocations: 0 / 384.2 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.1252, allocations: 51.92 kB / 384.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.1257, allocations: 24.17 kB / 384.3 MB, free: 5.148 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.1299, allocations: 3.719 MB / 388 MB, free: 1.293 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.1304, allocations: 0.7437 MB / 388.7 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.1306, allocations: 59.41 kB / 388.8 MB, free: 476 kB / 282.7 MB Notification: Performance of SimCode: time 1.453e-06/0.1306, allocations: 0 / 388.8 MB, free: 476 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.681/2.812, allocations: 3.126 MB / 391.9 MB, free: 19.83 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat