Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 178.7 kB / 8.519 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.4 MB / 230.3 MB, free: 7.695 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009693/0.0009693, allocations: 84.73 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1748/0.1748, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1987/0.3735, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.4722, allocations: 61.9 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2874/0.7596, allocations: 87.96 MB / 0.5801 GB, free: 8.832 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.7598, allocations: 59.98 kB / 0.5801 GB, free: 8.773 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.01463/0.7745, allocations: 5.153 MB / 0.5852 GB, free: 3.582 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7745, allocations: 11.94 kB / 0.5852 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.7746, allocations: 31.62 kB / 0.5852 GB, free: 3.539 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.7749, allocations: 254.6 kB / 0.5854 GB, free: 3.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.7749, allocations: 8 kB / 0.5854 GB, free: 3.242 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.775, allocations: 19.84 kB / 0.5855 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002572/0.7752, allocations: 132.9 kB / 0.5856 GB, free: 3.094 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.7756, allocations: 212.2 kB / 0.5858 GB, free: 2.863 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.7756, allocations: 7.938 kB / 0.5858 GB, free: 2.855 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.7756, allocations: 4 kB / 0.5858 GB, free: 2.852 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.7757, allocations: 15.89 kB / 0.5858 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.7772, allocations: 1.24 MB / 0.587 GB, free: 1.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.7774, allocations: 171 kB / 0.5872 GB, free: 1.309 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.7775, allocations: 79.42 kB / 0.5873 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.7776, allocations: 3.906 kB / 0.5873 GB, free: 1.215 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.7776, allocations: 42.69 kB / 0.5873 GB, free: 1.164 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.736e-06/0.7776, allocations: 0 / 0.5873 GB, free: 1.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001938/0.7796, allocations: 1.339 MB / 0.5886 GB, free: 15.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/0.7797, allocations: 132.5 kB / 0.5888 GB, free: 15.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.7799, allocations: 185.2 kB / 0.5889 GB, free: 15.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.7799, allocations: 25.7 kB / 0.589 GB, free: 15.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.78, allocations: 156.2 kB / 0.5891 GB, free: 15.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.493e-05/0.7801, allocations: 114.3 kB / 0.5892 GB, free: 14.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.7802, allocations: 4 kB / 0.5892 GB, free: 14.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.7804, allocations: 334.8 kB / 0.5895 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.7805, allocations: 72.8 kB / 0.5896 GB, free: 14.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.7807, allocations: 196.7 kB / 0.5898 GB, free: 14.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.7809, allocations: 99.95 kB / 0.5899 GB, free: 14.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7809, allocations: 0 / 0.5899 GB, free: 14.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004745/0.7814, allocations: 292.9 kB / 0.5902 GB, free: 13.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.7814, allocations: 4 kB / 0.5902 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.7814, allocations: 4 kB / 0.5902 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.7814, allocations: 8 kB / 0.5902 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/0.7819, allocations: 116.2 kB / 0.5903 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.7819, allocations: 8.547 kB / 0.5903 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.7822, allocations: 23.98 kB / 0.5903 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.7822, allocations: 20 kB / 0.5903 GB, free: 13.73 MB / 410.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 9.243e-05/0.7823, allocations: 128.7 kB / 0.5905 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.7824, allocations: 23.72 kB / 0.5905 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.588e-05/0.7825, allocations: 25.72 kB / 0.5905 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.7825, allocations: 7.984 kB / 0.5905 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.7825, allocations: 0 / 0.5905 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.7825, allocations: 3.906 kB / 0.5905 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.7837, allocations: 0.8651 MB / 0.5914 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.7837, allocations: 0 / 0.5914 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004135/0.7841, allocations: 95.88 kB / 0.5915 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.7841, allocations: 0 / 0.5915 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.7842, allocations: 4.281 kB / 0.5915 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.7842, allocations: 4 kB / 0.5915 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.7842, allocations: 0 / 0.5915 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005784/0.7848, allocations: 0.6865 MB / 0.5921 GB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008159/0.7856, allocations: 1.157 MB / 0.5933 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.7857, allocations: 104.7 kB / 0.5934 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.7857, allocations: 0 / 0.5934 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.7861, allocations: 23.98 kB / 0.5934 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.446e-05/0.7861, allocations: 23.97 kB / 0.5934 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.7862, allocations: 11.98 kB / 0.5934 GB, free: 10.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001046/0.7863, allocations: 140.5 kB / 0.5936 GB, free: 10.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001034/0.7873, allocations: 63.89 kB / 0.5936 GB, free: 10.19 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.0001338/0.7875, allocations: 103.2 kB / 0.5937 GB, free: 10.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.7878, allocations: 201 kB / 0.5939 GB, free: 9.883 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7878, allocations: 0 / 0.5939 GB, free: 9.883 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.788, allocations: 95.86 kB / 0.594 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.7884, allocations: 28.17 kB / 0.594 GB, free: 9.766 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.7896, allocations: 0.6904 MB / 0.5947 GB, free: 9.023 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.7901, allocations: 0.8184 MB / 0.5955 GB, free: 8.18 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.7901, allocations: 0 / 0.5955 GB, free: 8.18 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat