Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001891/0.001891, allocations: 188.5 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009596/0.0009592, allocations: 101.7 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2092/0.2092, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1992/0.4084, allocations: 64.95 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.6927, allocations: 58.84 MB / 476.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.8312, allocations: 86.69 MB / 0.5501 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.8315, allocations: 59.97 kB / 0.5502 GB, free: 12.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.01539/0.8469, allocations: 4.989 MB / 0.5551 GB, free: 7.125 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.8469, allocations: 12 kB / 0.5551 GB, free: 7.113 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.847, allocations: 31.62 kB / 0.5551 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.8473, allocations: 258 kB / 0.5553 GB, free: 6.789 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.8473, allocations: 8 kB / 0.5554 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.8474, allocations: 23.91 kB / 0.5554 GB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002477/0.8476, allocations: 124.9 kB / 0.5555 GB, free: 6.637 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.848, allocations: 228.2 kB / 0.5557 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.848, allocations: 4 kB / 0.5557 GB, free: 6.383 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.848, allocations: 3.906 kB / 0.5557 GB, free: 6.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-06/0.848, allocations: 4 kB / 0.5557 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.8498, allocations: 1.252 MB / 0.5569 GB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.8501, allocations: 179.1 kB / 0.5571 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.8502, allocations: 67.44 kB / 0.5572 GB, free: 4.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.8502, allocations: 4.156 kB / 0.5572 GB, free: 4.746 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.8503, allocations: 46.53 kB / 0.5572 GB, free: 4.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.154e-06/0.8503, allocations: 4 kB / 0.5572 GB, free: 4.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001971/0.8522, allocations: 1.323 MB / 0.5585 GB, free: 3.156 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.759e-05/0.8524, allocations: 132.5 kB / 0.5587 GB, free: 2.996 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.8526, allocations: 188.3 kB / 0.5588 GB, free: 2.805 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.8526, allocations: 26.64 kB / 0.5589 GB, free: 2.773 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.013e-05/0.8527, allocations: 164.2 kB / 0.559 GB, free: 2.609 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.922e-05/0.8528, allocations: 114.3 kB / 0.5591 GB, free: 2.496 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.8528, allocations: 0 / 0.5591 GB, free: 2.496 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.8529, allocations: 340.2 kB / 0.5594 GB, free: 2.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.8531, allocations: 60.88 kB / 0.5595 GB, free: 2.094 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.8533, allocations: 199.9 kB / 0.5597 GB, free: 1.844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.8535, allocations: 95.83 kB / 0.5598 GB, free: 1.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.8535, allocations: 4 kB / 0.5598 GB, free: 1.746 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004702/0.854, allocations: 297.6 kB / 0.5601 GB, free: 1.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.854, allocations: 4 kB / 0.5601 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.854, allocations: 4 kB / 0.5601 GB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.854, allocations: 11.94 kB / 0.5601 GB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000442/0.8545, allocations: 108.3 kB / 0.5602 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.8545, allocations: 15.92 kB / 0.5602 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.8547, allocations: 27.98 kB / 0.5602 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.8548, allocations: 12 kB / 0.5603 GB, free: 1.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001089/0.8549, allocations: 122.2 kB / 0.5604 GB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.855, allocations: 27.72 kB / 0.5604 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.044e-05/0.8551, allocations: 29.7 kB / 0.5604 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.8551, allocations: 4 kB / 0.5604 GB, free: 1.086 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.8551, allocations: 7.906 kB / 0.5604 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.8551, allocations: 7.984 kB / 0.5604 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.8563, allocations: 0.8573 MB / 0.5613 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.8563, allocations: 4 kB / 0.5613 GB, free: 160 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.8567, allocations: 88.19 kB / 0.5614 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.8568, allocations: 4 kB / 0.5614 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.8568, allocations: 12 kB / 0.5614 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.8568, allocations: 368 / 0.5614 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.8568, allocations: 7.984 kB / 0.5614 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007105/0.8575, allocations: 0.6826 MB / 0.5621 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009027/0.8584, allocations: 1.148 MB / 0.5632 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.375e-05/0.8585, allocations: 104.7 kB / 0.5633 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.8586, allocations: 11.92 kB / 0.5633 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.8589, allocations: 23.98 kB / 0.5633 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.859, allocations: 19.97 kB / 0.5633 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.859, allocations: 8 kB / 0.5633 GB, free: 13.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001339/0.8592, allocations: 148.5 kB / 0.5635 GB, free: 13.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001166/0.8603, allocations: 64.03 kB / 0.5635 GB, free: 13.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001689/0.8605, allocations: 99.17 kB / 0.5636 GB, free: 13.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.8609, allocations: 200.2 kB / 0.5638 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8609, allocations: 0 / 0.5638 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.8611, allocations: 99.86 kB / 0.5639 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.8616, allocations: 24.42 kB / 0.5639 GB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.8628, allocations: 0.6839 MB / 0.5646 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/0.8634, allocations: 0.814 MB / 0.5654 GB, free: 11.7 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.8634, allocations: 0 / 0.5654 GB, free: 11.7 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat