Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001304/0.001304, allocations: 188.3 kB / 7.803 MB, free: 2.504 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.187/1.187, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0009088/0.0009088, allocations: 82.31 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2232/0.2232, allocations: 43.49 MB / 352.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2326/0.4559, allocations: 64.95 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.8133, allocations: 58.83 MB / 476.6 MB, free: 5.285 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1471/0.9605, allocations: 100.9 MB / 0.564 GB, free: 14.03 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.9608, allocations: 67.47 kB / 0.5641 GB, free: 13.97 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.2055/1.166, allocations: 67.56 MB / 0.6301 GB, free: 10.12 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/1.166, allocations: 12 kB / 0.6301 GB, free: 10.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/1.169, allocations: 411.9 kB / 0.6305 GB, free: 9.699 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005205/1.175, allocations: 1.302 MB / 0.6317 GB, free: 8.344 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001435/1.176, allocations: 498.5 kB / 0.6322 GB, free: 7.793 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001596/1.178, allocations: 191.7 kB / 0.6324 GB, free: 7.605 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008665/1.186, allocations: 2.928 MB / 0.6353 GB, free: 4.672 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/1.198, allocations: 2.782 MB / 0.638 GB, free: 1.781 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004887/1.198, allocations: 35.7 kB / 0.638 GB, free: 1.746 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/1.2, allocations: 3.906 kB / 0.638 GB, free: 1.742 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.07e-05/1.2, allocations: 72 kB / 0.6381 GB, free: 1.672 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2588/1.459, allocations: 9.18 MB / 0.6471 GB, free: 94.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004463/1.463, allocations: 2.265 MB / 0.6493 GB, free: 94.45 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00305/1.466, allocations: 1.469 MB / 0.6507 GB, free: 94.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003941/1.467, allocations: 218.8 kB / 0.6509 GB, free: 94.15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.045e-05/1.467, allocations: 102 kB / 0.651 GB, free: 94.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=366): time 7.054e-06/1.467, allocations: 3.797 kB / 0.651 GB, free: 94.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=429): time 0.02655/1.493, allocations: 16.02 MB / 0.6667 GB, free: 85.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/1.494, allocations: 0.5542 MB / 0.6672 GB, free: 84.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/1.495, allocations: 1.04 MB / 0.6682 GB, free: 84.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007412/1.496, allocations: 56.02 kB / 0.6683 GB, free: 84.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004816/1.496, allocations: 0.6971 MB / 0.6689 GB, free: 84.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001402/1.498, allocations: 1.388 MB / 0.6703 GB, free: 83.65 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002876/1.498, allocations: 0 / 0.6703 GB, free: 83.65 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.498, allocations: 473.6 kB / 0.6708 GB, free: 83.33 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/1.5, allocations: 1.276 MB / 0.672 GB, free: 83.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/1.503, allocations: 1.973 MB / 0.6739 GB, free: 82.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/1.505, allocations: 1.299 MB / 0.6752 GB, free: 82.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/1.505, allocations: 5.219 kB / 0.6752 GB, free: 82.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009099/1.515, allocations: 4.272 MB / 0.6794 GB, free: 82.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/1.515, allocations: 6.125 kB / 0.6794 GB, free: 82.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.977e-05/1.515, allocations: 26.23 kB / 0.6794 GB, free: 82.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003731/1.518, allocations: 1.696 MB / 0.6811 GB, free: 82.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003714/1.522, allocations: 0.8339 MB / 0.6819 GB, free: 82.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/1.538, allocations: 15.15 MB / 0.6967 GB, free: 72.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003943/1.542, allocations: 330.4 kB / 0.697 GB, free: 72.31 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009963/1.543, allocations: 182.5 kB / 0.6972 GB, free: 72.31 MB / 474.7 MB 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 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: bearingFriction1.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 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009825/1.544, allocations: 230 kB / 0.6974 GB, free: 72.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/1.545, allocations: 272.1 kB / 0.6976 GB, free: 72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003543/1.549, allocations: 1.48 MB / 0.6991 GB, free: 71.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.032e-05/1.549, allocations: 47.78 kB / 0.6991 GB, free: 71.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.161e-05/1.549, allocations: 5.281 kB / 0.6991 GB, free: 71.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.873e-05/1.549, allocations: 25.44 kB / 0.6992 GB, free: 71.84 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/1.569, allocations: 9.566 MB / 0.7085 GB, free: 69.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.648e-05/1.569, allocations: 8 kB / 0.7085 GB, free: 69.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003453/1.572, allocations: 0.7605 MB / 0.7092 GB, free: 68.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003599/1.576, allocations: 1.56 MB / 0.7108 GB, free: 67.72 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000794/1.577, allocations: 83.03 kB / 0.7108 GB, free: 67.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/1.591, allocations: 14.66 MB / 0.7252 GB, free: 54.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.38e-05/1.591, allocations: 15.94 kB / 0.7252 GB, free: 54.44 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01171/1.603, allocations: 7.383 MB / 0.7324 GB, free: 47.05 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01283/1.616, allocations: 9.522 MB / 0.7417 GB, free: 37.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.617, allocations: 0.6751 MB / 0.7423 GB, free: 37.01 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007713/1.618, allocations: 46.62 kB / 0.7424 GB, free: 36.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/1.621, allocations: 314.7 kB / 0.7427 GB, free: 36.73 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/1.622, allocations: 0.4908 MB / 0.7432 GB, free: 36.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/1.623, allocations: 161.8 kB / 0.7433 GB, free: 36.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001067/1.624, allocations: 0.7621 MB / 0.7441 GB, free: 35.66 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00548/1.629, allocations: 0.7925 MB / 0.7448 GB, free: 34.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (303): * Single equations (assignments): 293 * 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 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009059/1.63, allocations: 246.9 kB / 0.7451 GB, free: 34.65 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007449/1.638, allocations: 4.166 MB / 0.7491 GB, free: 30.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.638, allocations: 0 / 0.7491 GB, free: 30.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006991/1.645, allocations: 3.211 MB / 0.7523 GB, free: 27.47 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/1.648, allocations: 278.1 kB / 0.7525 GB, free: 27.26 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/1.661, allocations: 6.705 MB / 0.7591 GB, free: 21.12 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00254/1.664, allocations: 2.167 MB / 0.7612 GB, free: 19.38 MB / 474.7 MB Notification: Performance of SimCode: time 8.62e-07/1.664, allocations: 0 / 0.7612 GB, free: 19.38 MB / 474.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1)