Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.GasComponents.TestFanMech,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestFanMech",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestFanMech,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestFanMech",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.000978/0.0009821, allocations: 183.5 kB / 8.134 MB, free: 2.219 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.04/1.04, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008449/0.000845, allocations: 91.44 kB / 261.8 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3016/0.3016, allocations: 48.76 MB / 358.4 MB, free: 53.16 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.09227/0.3939, allocations: 66.37 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.4921, allocations: 60.26 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5905/1.083, allocations: 355.6 MB / 0.821 GB, free: 9.516 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/1.083, allocations: 81.02 kB / 0.8211 GB, free: 9.477 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.3843/1.467, allocations: 98.33 MB / 0.9171 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/1.467, allocations: 6.094 kB / 0.9171 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006246/1.468, allocations: 115.5 kB / 0.9172 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009408/1.469, allocations: 0.4895 MB / 0.9177 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.507e-05/1.469, allocations: 56.39 kB / 0.9177 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.191e-05/1.469, allocations: 40.8 kB / 0.9178 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008656/1.47, allocations: 0.5012 MB / 0.9183 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/1.471, allocations: 0.6043 MB / 0.9188 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/1.471, allocations: 3.984 kB / 0.9188 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/1.471, allocations: 7.406 kB / 0.9189 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/1.471, allocations: 14.06 kB / 0.9189 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0038/1.475, allocations: 2.643 MB / 0.9214 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/1.475, allocations: 265.3 kB / 0.9217 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/1.476, allocations: 205.5 kB / 0.9219 GB, free: 125 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001478/1.477, allocations: 1.037 MB / 0.9229 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/1.477, allocations: 41.25 kB / 0.923 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 1.904e-06/1.477, allocations: 0 / 0.923 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=52): time 0.003545/1.481, allocations: 1.606 MB / 0.9245 GB, free: 123 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/1.481, allocations: 110.6 kB / 0.9246 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/1.481, allocations: 356.4 kB / 0.925 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/1.481, allocations: 29.7 kB / 0.925 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/1.481, allocations: 278.1 kB / 0.9253 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/1.481, allocations: 177.3 kB / 0.9254 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/1.481, allocations: 3.938 kB / 0.9254 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.444e-05/1.481, allocations: 356.7 kB / 0.9258 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002963/1.482, allocations: 187.9 kB / 0.9259 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/1.482, allocations: 376.2 kB / 0.9263 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005892/1.483, allocations: 233.5 kB / 0.9265 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.483, allocations: 0 / 0.9265 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001381/1.484, allocations: 0.7574 MB / 0.9273 GB, free: 121 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000402/1.485, allocations: 2.093 MB / 0.9293 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/1.485, allocations: 10.97 kB / 0.9293 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009724/1.486, allocations: 388.2 kB / 0.9297 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/1.486, allocations: 133.8 kB / 0.9298 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/1.487, allocations: 1.519 MB / 0.9313 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000691/1.488, allocations: 79.52 kB / 0.9314 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.522e-05/1.488, allocations: 59.89 kB / 0.9314 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/1.488, allocations: 7.5 kB / 0.9314 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001367/1.49, allocations: 0.5996 MB / 0.932 GB, free: 117 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/1.49, allocations: 10.59 kB / 0.932 GB, free: 117 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004588/1.49, allocations: 256.1 kB / 0.9323 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/1.491, allocations: 154.2 kB / 0.9324 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/1.493, allocations: 2.346 MB / 0.9347 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/1.493, allocations: 72.19 kB / 0.9348 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/1.493, allocations: 33.86 kB / 0.9348 GB, free: 114.6 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: FanMech1.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real FanMech1.s:VARIABLE() "Auxiliary Variable" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 8 (Clutch1.free,$PRE.Clutch1.startForward,Clutch1.startForward,$PRE.Clutch1.startBackward,Clutch1.startBackward,Clutch1.locked,$PRE.Clutch1.mode,Clutch1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002296/1.494, allocations: 127 kB / 0.9349 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/1.494, allocations: 57.41 kB / 0.935 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/1.495, allocations: 0.6682 MB / 0.9357 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/1.495, allocations: 6.969 kB / 0.9357 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/1.495, allocations: 3.906 kB / 0.9357 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.495, allocations: 0 / 0.9357 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/1.498, allocations: 1.247 MB / 0.9369 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.498, allocations: 0 / 0.9369 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004047/1.498, allocations: 90.69 kB / 0.937 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007888/1.499, allocations: 323.5 kB / 0.9373 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.437e-05/1.499, allocations: 19.17 kB / 0.9373 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/1.5, allocations: 1.439 MB / 0.9387 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.5, allocations: 0 / 0.9387 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001659/1.502, allocations: 0.91 MB / 0.9396 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001971/1.504, allocations: 1.501 MB / 0.9411 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/1.504, allocations: 197.5 kB / 0.9412 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/1.504, allocations: 7.094 kB / 0.9413 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006292/1.505, allocations: 82.67 kB / 0.9413 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/1.505, allocations: 69.11 kB / 0.9414 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.091e-05/1.505, allocations: 61.83 kB / 0.9415 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002549/1.505, allocations: 268.5 kB / 0.9417 GB, free: 110 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002514/1.508, allocations: 439.5 kB / 0.9421 GB, free: 109.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (ConstantSpeed1.phi,Clutch1.phi_rel,Clutch1.w_rel) * Number of discrete variables: 5 (Clutch1.free,Clutch1.startForward,Clutch1.startBackward,Clutch1.locked,Clutch1.mode) * Number of discrete states: 3 (Clutch1.mode,Clutch1.startBackward,Clutch1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008792/1.509, allocations: 363 kB / 0.9425 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001709/1.511, allocations: 1 MB / 0.9435 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.511, allocations: 0 / 0.9435 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000468/1.511, allocations: 262.8 kB / 0.9437 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009292/1.512, allocations: 158.4 kB / 0.9439 GB, free: 109 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/1.514, allocations: 0.8647 MB / 0.9447 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005319/1.514, allocations: 0.9724 MB / 0.9456 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of SimCode: time 2.81e-07/1.514, allocations: 0 / 0.9456 GB, free: 107.6 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestFanMech_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestFanMech.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe 2>&1)