Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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) 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(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",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.001193/0.001193, allocations: 182.4 kB / 8.134 MB, free: 2.211 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.077/1.077, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0008763/0.0008763, allocations: 107.4 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08904/0.08994, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.2664, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07366/0.3401, allocations: 77.06 MB / 464.1 MB, free: 9.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.3404, allocations: 67.95 kB / 464.1 MB, free: 9.633 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.006442/0.3468, allocations: 2.58 MB / 466.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.3469, allocations: 12 kB / 466.7 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.347, allocations: 32.72 kB / 466.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.3472, allocations: 183 kB / 466.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.3472, allocations: 0 / 466.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.3473, allocations: 11.91 kB / 466.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001312/0.3474, allocations: 52.3 kB / 467 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.3475, allocations: 78.98 kB / 467.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3476, allocations: 0 / 467.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.3476, allocations: 0 / 467.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3476, allocations: 4 kB / 467.1 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006383/0.3482, allocations: 464.4 kB / 467.5 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.3484, allocations: 53.73 kB / 467.6 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.111e-05/0.3485, allocations: 24.86 kB / 467.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3485, allocations: 0 / 467.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.3485, allocations: 30.56 kB / 467.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 9.71e-07/0.3485, allocations: 0 / 467.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001691/0.3487, allocations: 85.56 kB / 467.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.084e-05/0.3487, allocations: 51.41 kB / 467.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.484e-05/0.3488, allocations: 105 kB / 467.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.3488, allocations: 29.64 kB / 467.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.3489, allocations: 107.8 kB / 468 MB, free: 5.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.3489, allocations: 32.3 kB / 468 MB, free: 5.547 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.3489, allocations: 0 / 468 MB, free: 5.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.349, allocations: 318.8 kB / 468.4 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.993e-05/0.349, allocations: 20 kB / 468.4 MB, free: 5.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.331e-05/0.3491, allocations: 51.42 kB / 468.4 MB, free: 5.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.898e-05/0.3491, allocations: 28.86 kB / 468.5 MB, free: 5.117 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3492, allocations: 0 / 468.5 MB, free: 5.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001397/0.3493, allocations: 101.5 kB / 468.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.3493, allocations: 8.094 kB / 468.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3493, allocations: 0 / 468.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.3493, allocations: 4 kB / 468.6 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3495, allocations: 27.92 kB / 468.6 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.3495, allocations: 0 / 468.6 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.3495, allocations: 11.84 kB / 468.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.3496, allocations: 5 kB / 468.6 MB, free: 4.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 5.613e-05/0.3496, allocations: 101 kB / 468.7 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.3497, allocations: 7.906 kB / 468.7 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/0.3497, allocations: 20.36 kB / 468.7 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3497, allocations: 4 kB / 468.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3497, allocations: 0 / 468.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3497, allocations: 3.906 kB / 468.7 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.3499, allocations: 166.3 kB / 468.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3499, allocations: 0 / 468.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.35, allocations: 28.48 kB / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3501, allocations: 0 / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3501, allocations: 0 / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3501, allocations: 0 / 468.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.3501, allocations: 8.078 kB / 468.9 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001808/0.3503, allocations: 195.5 kB / 469.1 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002844/0.3506, allocations: 0.5935 MB / 469.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/0.3506, allocations: 84.95 kB / 469.8 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.3506, allocations: 0 / 469.8 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.97e-05/0.3507, allocations: 8 kB / 469.8 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.453e-05/0.3507, allocations: 3.984 kB / 469.8 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.3508, allocations: 4.688 kB / 469.8 MB, free: 3.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.181e-05/0.3508, allocations: 92.16 kB / 469.9 MB, free: 3.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007709/0.3516, allocations: 27.84 kB / 469.9 MB, free: 3.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 9.547e-05/0.3517, allocations: 99.23 kB / 470 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.3518, allocations: 51.94 kB / 470.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3518, allocations: 4.188 kB / 470.1 MB, free: 3.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.3518, allocations: 24 kB / 470.1 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3521, allocations: 19.19 kB / 470.1 MB, free: 3.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005325/0.3526, allocations: 308.4 kB / 470.4 MB, free: 3.016 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.3529, allocations: 0.7192 MB / 471.2 MB, free: 2.27 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3529, allocations: 0 / 471.2 MB, free: 2.27 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat