Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001755/0.001755, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001115/0.001115, allocations: 105.6 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1127/0.1139, allocations: 56.9 MB / 343.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.2162, allocations: 51.46 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2522/0.4685, allocations: 78.44 MB / 473.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4687, allocations: 72.75 kB / 473.2 MB, free: 13.25 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.007327/0.4761, allocations: 3.019 MB / 476.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.4761, allocations: 11.23 kB / 476.2 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.4763, allocations: 24.03 kB / 476.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.4765, allocations: 204.2 kB / 476.5 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.4765, allocations: 7.906 kB / 476.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.4765, allocations: 7.234 kB / 476.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001512/0.4767, allocations: 54.81 kB / 476.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.4768, allocations: 83.7 kB / 476.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4768, allocations: 3.188 kB / 476.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.4769, allocations: 0 / 476.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4769, allocations: 6.531 kB / 476.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007473/0.4776, allocations: 0.4985 MB / 477.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.4778, allocations: 57.14 kB / 477.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.798e-05/0.4779, allocations: 31.83 kB / 477.2 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.4779, allocations: 0 / 477.2 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.192e-05/0.4779, allocations: 34.47 kB / 477.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.4779, allocations: 4 kB / 477.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.000185/0.4781, allocations: 86.53 kB / 477.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.733e-05/0.4781, allocations: 55.41 kB / 477.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.357e-05/0.4782, allocations: 113.7 kB / 477.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.4782, allocations: 25.7 kB / 477.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.097e-05/0.4783, allocations: 114.6 kB / 477.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.4783, allocations: 33.66 kB / 477.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.4783, allocations: 0 / 477.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.4783, allocations: 321.6 kB / 478 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.46e-05/0.4784, allocations: 29.89 kB / 478 MB, free: 9.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.181e-05/0.4784, allocations: 45.62 kB / 478.1 MB, free: 9.691 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.049e-05/0.4785, allocations: 34.06 kB / 478.1 MB, free: 9.672 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4785, allocations: 0 / 478.1 MB, free: 9.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001499/0.4787, allocations: 109.4 kB / 478.2 MB, free: 9.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.226e-06/0.4787, allocations: 9.125 kB / 478.2 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.4787, allocations: 0 / 478.2 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/0.4787, allocations: 4 kB / 478.2 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.4789, allocations: 38.56 kB / 478.2 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.4789, allocations: 3.828 kB / 478.2 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.479, allocations: 19.91 kB / 478.3 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.479, allocations: 3.047 kB / 478.3 MB, free: 9.523 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 (14): * Single equations (assignments): 14 * 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 4.289e-05/0.4791, allocations: 108.9 kB / 478.4 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.4791, allocations: 7.906 kB / 478.4 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.617e-05/0.4791, allocations: 15.31 kB / 478.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4792, allocations: 3.906 kB / 478.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.4792, allocations: 0 / 478.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4792, allocations: 4.969 kB / 478.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.4793, allocations: 179.3 kB / 478.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4793, allocations: 0 / 478.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.4795, allocations: 36.06 kB / 478.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4795, allocations: 0 / 478.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.4795, allocations: 4.797 kB / 478.6 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4795, allocations: 0 / 478.6 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4796, allocations: 0 / 478.6 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001956/0.4798, allocations: 213.4 kB / 478.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002427/0.48, allocations: 0.6187 MB / 479.4 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.48, allocations: 88.92 kB / 479.5 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.4801, allocations: 3.5 kB / 479.5 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.4802, allocations: 17.39 kB / 479.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.4802, allocations: 11.5 kB / 479.6 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.4803, allocations: 0 / 479.6 MB, free: 8.277 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.32e-05/0.4803, allocations: 97.28 kB / 479.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007941/0.4811, allocations: 31.84 kB / 479.7 MB, free: 8.16 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 (9): * Single equations (assignments): 9 * 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.000101/0.4812, allocations: 102.6 kB / 479.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.4813, allocations: 66.38 kB / 479.9 MB, free: 8.008 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.4813, allocations: 0 / 479.9 MB, free: 8.008 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.72e-05/0.4814, allocations: 34.56 kB / 479.9 MB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.4816, allocations: 20.05 kB / 479.9 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.4822, allocations: 326.3 kB / 480.2 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.4823, allocations: 0.7334 MB / 481 MB, free: 6.945 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4823, allocations: 0 / 481 MB, free: 6.945 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat