Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBearingConversion",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.001715/0.001715, allocations: 200.1 kB / 8.539 MB, free: 1.742 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 92.28 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2605/0.2605, allocations: 45.14 MB / 383.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3313/0.5919, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.7187, allocations: 63.25 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3913/1.11, allocations: 105.1 MB / 0.6065 GB, free: 13.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/1.11, allocations: 67.03 kB / 0.6066 GB, free: 13.9 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 727 * Number of variables: 727 Notification: Performance of Generate backend data structure: time 0.2851/1.396, allocations: 100.1 MB / 0.7043 GB, free: 2.375 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/1.396, allocations: 8 kB / 0.7043 GB, free: 2.367 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003517/1.399, allocations: 0.5269 MB / 0.7048 GB, free: 1.836 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/1.403, allocations: 1.412 MB / 0.7062 GB, free: 380 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001/1.404, allocations: 0.5025 MB / 0.7067 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007909/1.405, allocations: 191.7 kB / 0.7069 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007081/1.412, allocations: 3.025 MB / 0.7099 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00623/1.418, allocations: 2.845 MB / 0.7126 GB, free: 9.645 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001624/1.419, allocations: 43.55 kB / 0.7127 GB, free: 9.602 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002816/1.419, allocations: 7.938 kB / 0.7127 GB, free: 9.594 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.259e-05/1.419, allocations: 68 kB / 0.7127 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02053/1.439, allocations: 9.552 MB / 0.7221 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/1.444, allocations: 2.284 MB / 0.7243 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/1.447, allocations: 1.477 MB / 0.7257 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003917/1.447, allocations: 227.8 kB / 0.726 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.741e-05/1.447, allocations: 83.81 kB / 0.726 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=366): time 5.66e-06/1.447, allocations: 4 kB / 0.7261 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=429): time 0.03299/1.48, allocations: 16.06 MB / 0.7417 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000307/1.481, allocations: 0.5467 MB / 0.7423 GB, free: 9.695 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/1.483, allocations: 1.222 MB / 0.7435 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001143/1.484, allocations: 53.69 kB / 0.7435 GB, free: 8.402 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000674/1.485, allocations: 0.7262 MB / 0.7442 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001839/1.487, allocations: 1.386 MB / 0.7456 GB, free: 6.258 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003286/1.487, allocations: 4 kB / 0.7456 GB, free: 6.254 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00025/1.488, allocations: 467.1 kB / 0.746 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/1.49, allocations: 1.297 MB / 0.7473 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003163/1.493, allocations: 2 MB / 0.7492 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002919/1.496, allocations: 1.317 MB / 0.7505 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/1.496, allocations: 4 kB / 0.7505 GB, free: 0.8984 MB / 0.5261 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.2521/1.748, allocations: 4.258 MB / 0.7547 GB, free: 209.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/1.748, allocations: 3.688 kB / 0.7547 GB, free: 209.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.899e-05/1.749, allocations: 18.81 kB / 0.7547 GB, free: 209.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004501/1.753, allocations: 1.662 MB / 0.7563 GB, free: 209 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003825/1.757, allocations: 0.8466 MB / 0.7572 GB, free: 209 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01705/1.774, allocations: 15.26 MB / 0.7721 GB, free: 199.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/1.778, allocations: 329.9 kB / 0.7724 GB, free: 199.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006312/1.779, allocations: 181 kB / 0.7726 GB, free: 199.6 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.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: 82 * Number of states: 0 () * Number of discrete variables: 60 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {1 8,1 8,2 22,2 22,2 25,2 24,1 13,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009838/1.78, allocations: 242 kB / 0.7728 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/1.781, allocations: 272.5 kB / 0.773 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/1.782, allocations: 494.5 kB / 0.7735 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/1.782, allocations: 52.66 kB / 0.7736 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.141e-05/1.782, allocations: 6.469 kB / 0.7736 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.624e-05/1.782, allocations: 27.19 kB / 0.7736 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/1.801, allocations: 9.825 MB / 0.7832 GB, free: 197.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.293e-05/1.801, allocations: 7.125 kB / 0.7832 GB, free: 197.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003427/1.804, allocations: 0.7593 MB / 0.7839 GB, free: 197.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004118/1.808, allocations: 1.548 MB / 0.7855 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000503/1.809, allocations: 79.36 kB / 0.7855 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/1.824, allocations: 14.75 MB / 0.7999 GB, free: 186.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-05/1.824, allocations: 14.22 kB / 0.8 GB, free: 186.3 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01254/1.837, allocations: 7.398 MB / 0.8072 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01409/1.851, allocations: 9.609 MB / 0.8166 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/1.853, allocations: 0.7717 MB / 0.8173 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007393/1.854, allocations: 45.52 kB / 0.8174 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0033/1.857, allocations: 312.1 kB / 0.8177 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001243/1.859, allocations: 0.4992 MB / 0.8181 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005109/1.859, allocations: 161.6 kB / 0.8183 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001574/1.861, allocations: 0.8885 MB / 0.8192 GB, free: 175.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00618/1.867, allocations: 0.8268 MB / 0.82 GB, free: 175.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 291 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 7,1 7,1 10,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001229/1.868, allocations: 411.1 kB / 0.8204 GB, free: 175.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008317/1.876, allocations: 4.121 MB / 0.8244 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/1.876, allocations: 0 / 0.8244 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007287/1.884, allocations: 3.191 MB / 0.8275 GB, free: 169 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003956/1.888, allocations: 311.5 kB / 0.8278 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.903, allocations: 6.866 MB / 0.8345 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002739/1.906, allocations: 2.217 MB / 0.8367 GB, free: 161 MB / 0.5261 GB Notification: Performance of SimCode: time 1.362e-06/1.906, allocations: 0 / 0.8367 GB, free: 161 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat