Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 184.1 kB / 8.52 MB, free: 1.828 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.72/1.72, allocations: 221.4 MB / 230.3 MB, free: 7.715 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.001006/0.001005, allocations: 96.2 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2074/0.2074, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2733/0.4807, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.6151, allocations: 61.9 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3532/0.9683, allocations: 102.5 MB / 0.5942 GB, free: 10.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.9685, allocations: 67.97 kB / 0.5943 GB, free: 10.21 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.2006/1.169, allocations: 68.58 MB / 0.6613 GB, free: 5.355 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.169, allocations: 11.94 kB / 0.6613 GB, free: 5.344 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002717/1.172, allocations: 415.8 kB / 0.6617 GB, free: 4.934 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004625/1.177, allocations: 1.298 MB / 0.6629 GB, free: 3.582 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001239/1.178, allocations: 0.4908 MB / 0.6634 GB, free: 3.027 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001556/1.179, allocations: 191.7 kB / 0.6636 GB, free: 2.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008109/1.188, allocations: 2.92 MB / 0.6664 GB, free: 15.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007923/1.196, allocations: 2.79 MB / 0.6692 GB, free: 13.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002378/1.196, allocations: 35.7 kB / 0.6692 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000635/1.196, allocations: 0 / 0.6692 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-05/1.197, allocations: 75.91 kB / 0.6693 GB, free: 12.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02122/1.218, allocations: 9.195 MB / 0.6783 GB, free: 3.496 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00526/1.223, allocations: 2.245 MB / 0.6804 GB, free: 1.164 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00383/1.227, allocations: 1.468 MB / 0.6819 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006502/1.228, allocations: 231.5 kB / 0.6821 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.616e-05/1.228, allocations: 87.66 kB / 0.6822 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=366): time 8.466e-06/1.228, allocations: 0 / 0.6822 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=429): time 0.03415/1.262, allocations: 16.03 MB / 0.6978 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003121/1.262, allocations: 0.5583 MB / 0.6984 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/1.265, allocations: 1.03 MB / 0.6994 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001298/1.266, allocations: 57.69 kB / 0.6994 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007152/1.267, allocations: 0.7142 MB / 0.7001 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001794/1.269, allocations: 1.382 MB / 0.7015 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/1.269, allocations: 0 / 0.7015 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000266/1.269, allocations: 467 kB / 0.7019 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002386/1.272, allocations: 1.27 MB / 0.7032 GB, free: 8.535 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0029/1.275, allocations: 1.969 MB / 0.7051 GB, free: 6.293 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/1.278, allocations: 1.314 MB / 0.7064 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/1.278, allocations: 8 kB / 0.7064 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009024/1.287, allocations: 4.258 MB / 0.7106 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/1.287, allocations: 4 kB / 0.7106 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.448e-05/1.287, allocations: 27.94 kB / 0.7106 GB, free: 0.6562 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2199/1.507, allocations: 1.677 MB / 0.7122 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/1.511, allocations: 0.8415 MB / 0.713 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/1.527, allocations: 15.14 MB / 0.7278 GB, free: 193.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/1.531, allocations: 326.4 kB / 0.7281 GB, free: 193.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009156/1.532, allocations: 194.5 kB / 0.7283 GB, free: 193.4 MB / 0.5105 GB 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.001041/1.533, allocations: 243.2 kB / 0.7286 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/1.534, allocations: 268 kB / 0.7288 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/1.537, allocations: 1.472 MB / 0.7303 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.059e-05/1.537, allocations: 42.41 kB / 0.7303 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.171e-05/1.537, allocations: 9.438 kB / 0.7303 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.47e-05/1.537, allocations: 21.47 kB / 0.7303 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01932/1.557, allocations: 9.56 MB / 0.7397 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.116e-05/1.557, allocations: 11.53 kB / 0.7397 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003564/1.56, allocations: 0.7545 MB / 0.7404 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003808/1.564, allocations: 1.57 MB / 0.7419 GB, free: 191.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005961/1.565, allocations: 88.05 kB / 0.742 GB, free: 191.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/1.58, allocations: 14.66 MB / 0.7563 GB, free: 180.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/1.58, allocations: 16.03 kB / 0.7564 GB, free: 180.4 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01372/1.594, allocations: 7.375 MB / 0.7636 GB, free: 175.9 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01438/1.608, allocations: 9.518 MB / 0.7728 GB, free: 170.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/1.61, allocations: 0.6723 MB / 0.7735 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/1.611, allocations: 45.78 kB / 0.7735 GB, free: 169.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003968/1.615, allocations: 318.4 kB / 0.7739 GB, free: 169.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/1.617, allocations: 497.2 kB / 0.7743 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006034/1.617, allocations: 163.5 kB / 0.7745 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0019/1.619, allocations: 0.7692 MB / 0.7752 GB, free: 169.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006983/1.626, allocations: 0.7853 MB / 0.776 GB, free: 169.4 MB / 0.5105 GB 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.00124/1.627, allocations: 257.2 kB / 0.7762 GB, free: 169.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01039/1.638, allocations: 4.169 MB / 0.7803 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.496e-05/1.638, allocations: 4 kB / 0.7803 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007888/1.646, allocations: 3.202 MB / 0.7834 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/1.65, allocations: 279.1 kB / 0.7837 GB, free: 164 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/1.666, allocations: 6.709 MB / 0.7903 GB, free: 158 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0036/1.67, allocations: 2.167 MB / 0.7924 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.042e-06/1.67, allocations: 0 / 0.7924 GB, free: 156.3 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1)