Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",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.001256/0.001257, allocations: 189.8 kB / 7.802 MB, free: 2.5 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.223/1.223, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009178/0.0009177, allocations: 95.34 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.1824/0.1824, allocations: 43.5 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1875/0.3699, allocations: 64.95 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.6622, allocations: 58.84 MB / 476.6 MB, free: 5.168 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.7927, allocations: 88.79 MB / 0.5522 GB, free: 10.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.793, allocations: 59.97 kB / 0.5522 GB, free: 10.09 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.01799/0.811, allocations: 6.275 MB / 0.5584 GB, free: 3.773 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.811, allocations: 15.88 kB / 0.5584 GB, free: 3.758 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.8113, allocations: 47.61 kB / 0.5584 GB, free: 3.711 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.8117, allocations: 254.5 kB / 0.5587 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.8117, allocations: 8 kB / 0.5587 GB, free: 3.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.8118, allocations: 27.91 kB / 0.5587 GB, free: 3.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003167/0.8121, allocations: 149.2 kB / 0.5588 GB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.8125, allocations: 249.5 kB / 0.5591 GB, free: 2.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.8125, allocations: 3.906 kB / 0.5591 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.8126, allocations: 0 / 0.5591 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.8126, allocations: 8 kB / 0.5591 GB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.8146, allocations: 1.286 MB / 0.5604 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.815, allocations: 208.5 kB / 0.5606 GB, free: 1.328 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.8151, allocations: 72.33 kB / 0.5606 GB, free: 1.242 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.8152, allocations: 4 kB / 0.5606 GB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.8152, allocations: 38.75 kB / 0.5607 GB, free: 1.191 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 3.406e-06/0.8152, allocations: 0 / 0.5607 GB, free: 1.191 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004271/0.8156, allocations: 161.2 kB / 0.5608 GB, free: 1.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.894e-05/0.8157, allocations: 158.2 kB / 0.561 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.8159, allocations: 174.1 kB / 0.5611 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.8159, allocations: 25.7 kB / 0.5612 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.8161, allocations: 175.8 kB / 0.5613 GB, free: 460 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.817e-05/0.8161, allocations: 90.66 kB / 0.5614 GB, free: 368 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.8162, allocations: 0 / 0.5614 GB, free: 368 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8163, allocations: 334.8 kB / 0.5617 GB, free: 24 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.8164, allocations: 56.19 kB / 0.5618 GB, free: 15.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.8167, allocations: 194.5 kB / 0.562 GB, free: 15.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.8168, allocations: 91.89 kB / 0.5621 GB, free: 15.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.8168, allocations: 0 / 0.5621 GB, free: 15.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004642/0.8173, allocations: 265.4 kB / 0.5623 GB, free: 15.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.8173, allocations: 7.984 kB / 0.5623 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.8174, allocations: 4.078 kB / 0.5623 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.8174, allocations: 8 kB / 0.5623 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.8177, allocations: 83.84 kB / 0.5624 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.8177, allocations: 19.88 kB / 0.5624 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.8179, allocations: 23.69 kB / 0.5625 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.818, allocations: 23.94 kB / 0.5625 GB, free: 15.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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 9.218e-05/0.818, allocations: 122.4 kB / 0.5626 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.8182, allocations: 23.72 kB / 0.5626 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.8183, allocations: 75.08 kB / 0.5627 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.8184, allocations: 4 kB / 0.5627 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.8184, allocations: 4.25 kB / 0.5627 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.8184, allocations: 3.984 kB / 0.5627 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004986/0.8189, allocations: 273.8 kB / 0.563 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.8189, allocations: 0 / 0.563 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.8193, allocations: 67.89 kB / 0.563 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.8193, allocations: 8 kB / 0.563 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.8193, allocations: 8.094 kB / 0.563 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.8193, allocations: 3.938 kB / 0.563 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.8193, allocations: 4 kB / 0.563 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005522/0.8199, allocations: 0.6555 MB / 0.5637 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007157/0.8206, allocations: 1.074 MB / 0.5647 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.8207, allocations: 104.8 kB / 0.5648 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.8208, allocations: 4 kB / 0.5648 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.8211, allocations: 0 / 0.5648 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.8211, allocations: 23.89 kB / 0.5649 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.8212, allocations: 8 kB / 0.5649 GB, free: 12.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001045/0.8213, allocations: 133.4 kB / 0.565 GB, free: 12.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001108/0.8224, allocations: 71.75 kB / 0.5651 GB, free: 12.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0001654/0.8226, allocations: 106 kB / 0.5652 GB, free: 12.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003306/0.8229, allocations: 172.7 kB / 0.5653 GB, free: 12.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.8229, allocations: 0 / 0.5653 GB, free: 12.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.823, allocations: 63.88 kB / 0.5654 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.8236, allocations: 43.97 kB / 0.5654 GB, free: 11.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.8253, allocations: 0.9877 MB / 0.5664 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.8259, allocations: 0.8298 MB / 0.5672 GB, free: 10.11 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.8259, allocations: 7.938 kB / 0.5672 GB, free: 10.1 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat