Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001601/0.001602, allocations: 183.5 kB / 8.52 MB, free: 1.742 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.338/1.338, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0009219/0.000922, allocations: 88.73 kB / 281.2 MB, free: 5.469 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.1816/0.1816, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2387/0.4204, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.5461, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.9081, allocations: 89.75 MB / 0.5818 GB, free: 7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.9083, allocations: 61.47 kB / 0.5819 GB, free: 6.941 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.01783/0.9261, allocations: 6.383 MB / 0.5881 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.9262, allocations: 11.94 kB / 0.5881 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000288/0.9265, allocations: 47.61 kB / 0.5882 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.9269, allocations: 258.4 kB / 0.5884 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.9269, allocations: 8 kB / 0.5884 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-05/0.927, allocations: 27.91 kB / 0.5885 GB, free: 144 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003964/0.9274, allocations: 141.4 kB / 0.5886 GB, free: 16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.9279, allocations: 257.4 kB / 0.5888 GB, free: 15.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/0.9279, allocations: 7.891 kB / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.928, allocations: 4 kB / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.928, allocations: 4 kB / 0.5888 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.93, allocations: 1.282 MB / 0.5901 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.9304, allocations: 200.6 kB / 0.5903 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.9305, allocations: 72.28 kB / 0.5904 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.9305, allocations: 3.938 kB / 0.5904 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.9306, allocations: 42.56 kB / 0.5904 GB, free: 13.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.9306, allocations: 0 / 0.5904 GB, free: 13.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004188/0.931, allocations: 161.4 kB / 0.5906 GB, free: 13.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.9311, allocations: 154.2 kB / 0.5907 GB, free: 13.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.9312, allocations: 173.9 kB / 0.5909 GB, free: 13.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.9313, allocations: 25.7 kB / 0.5909 GB, free: 13.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.989e-05/0.9314, allocations: 183.8 kB / 0.5911 GB, free: 13.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.969e-05/0.9314, allocations: 86.72 kB / 0.5912 GB, free: 13.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-06/0.9314, allocations: 0 / 0.5912 GB, free: 13.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.9316, allocations: 334.8 kB / 0.5915 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.9317, allocations: 52 kB / 0.5915 GB, free: 12.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.9319, allocations: 195.9 kB / 0.5917 GB, free: 12.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.932, allocations: 87.89 kB / 0.5918 GB, free: 12.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.932, allocations: 0 / 0.5918 GB, free: 12.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000434/0.9325, allocations: 265.7 kB / 0.592 GB, free: 12.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.9325, allocations: 4 kB / 0.592 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.9325, allocations: 12.3 kB / 0.5921 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.9325, allocations: 8 kB / 0.5921 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.9329, allocations: 91.89 kB / 0.5922 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.9329, allocations: 19.83 kB / 0.5922 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.9331, allocations: 23.69 kB / 0.5922 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.9331, allocations: 20 kB / 0.5922 GB, free: 11.95 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 7.793e-05/0.9332, allocations: 112.9 kB / 0.5923 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.9333, allocations: 23.72 kB / 0.5923 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/0.9335, allocations: 87.02 kB / 0.5924 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.9335, allocations: 0 / 0.5924 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.9335, allocations: 4 kB / 0.5924 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.9335, allocations: 3.984 kB / 0.5924 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.934, allocations: 258 kB / 0.5927 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.934, allocations: 3.906 kB / 0.5927 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.9344, allocations: 71.89 kB / 0.5928 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.9344, allocations: 4 kB / 0.5928 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.9344, allocations: 4 kB / 0.5928 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.9344, allocations: 4 kB / 0.5928 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.9344, allocations: 4.094 kB / 0.5928 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005067/0.935, allocations: 0.6642 MB / 0.5934 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006673/0.9356, allocations: 1.081 MB / 0.5945 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.9357, allocations: 96.77 kB / 0.5946 GB, free: 9.379 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.9358, allocations: 4 kB / 0.5946 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.936, allocations: 7.938 kB / 0.5946 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.9361, allocations: 11.89 kB / 0.5946 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.9361, allocations: 23.92 kB / 0.5946 GB, free: 9.332 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.06e-05/0.9362, allocations: 127.9 kB / 0.5947 GB, free: 9.207 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001078/0.9373, allocations: 75.75 kB / 0.5948 GB, free: 9.133 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.0001551/0.9375, allocations: 103.6 kB / 0.5949 GB, free: 9.023 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002822/0.9378, allocations: 169.1 kB / 0.5951 GB, free: 8.859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.9378, allocations: 320 / 0.5951 GB, free: 8.859 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.664e-05/0.9379, allocations: 67.94 kB / 0.5951 GB, free: 8.793 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.9384, allocations: 40.22 kB / 0.5952 GB, free: 8.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.9401, allocations: 0.9987 MB / 0.5961 GB, free: 7.719 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005699/0.9407, allocations: 0.8258 MB / 0.597 GB, free: 6.867 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.9407, allocations: 0 / 0.597 GB, free: 6.867 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat