Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",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.001212/0.001212, 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.249/1.249, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.0008858/0.0008858, allocations: 87.98 kB / 281.2 MB, free: 5.457 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.1903/0.1903, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2629/0.4533, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.579, allocations: 61.91 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.9826, allocations: 105.7 MB / 0.5974 GB, free: 6.98 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.9829, allocations: 63.97 kB / 0.5975 GB, free: 6.918 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.1601/1.143, allocations: 52.01 MB / 0.6483 GB, free: 2.664 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/1.143, allocations: 15.94 kB / 0.6483 GB, free: 2.648 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/1.145, allocations: 296.8 kB / 0.6486 GB, free: 2.355 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/1.148, allocations: 0.9784 MB / 0.6495 GB, free: 1.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009519/1.149, allocations: 404.1 kB / 0.6499 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008171/1.15, allocations: 143.8 kB / 0.65 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00557/1.155, allocations: 2.082 MB / 0.6521 GB, free: 14.65 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005389/1.161, allocations: 2.047 MB / 0.6541 GB, free: 12.53 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001805/1.161, allocations: 35.61 kB / 0.6541 GB, free: 12.49 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003535/1.161, allocations: 3.984 kB / 0.6541 GB, free: 12.49 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.592e-05/1.161, allocations: 52 kB / 0.6541 GB, free: 12.44 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01544/1.177, allocations: 6.286 MB / 0.6603 GB, free: 6.062 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003122/1.18, allocations: 1.488 MB / 0.6617 GB, free: 4.535 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002258/1.182, allocations: 1.145 MB / 0.6629 GB, free: 3.379 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003221/1.183, allocations: 123.3 kB / 0.663 GB, free: 3.238 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/1.183, allocations: 72.8 kB / 0.663 GB, free: 3.156 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 5.199e-06/1.183, allocations: 0 / 0.663 GB, free: 3.156 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.02232/1.205, allocations: 10.08 MB / 0.6729 GB, free: 8.605 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/1.205, allocations: 270 kB / 0.6731 GB, free: 8.289 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/1.207, allocations: 0.7275 MB / 0.6739 GB, free: 7.547 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005202/1.207, allocations: 41.7 kB / 0.6739 GB, free: 7.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004609/1.208, allocations: 0.5415 MB / 0.6744 GB, free: 6.949 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.209, allocations: 1.093 MB / 0.6755 GB, free: 5.836 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004066/1.209, allocations: 7.984 kB / 0.6755 GB, free: 5.828 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002648/1.21, allocations: 428.6 kB / 0.6759 GB, free: 5.402 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/1.212, allocations: 0.9554 MB / 0.6768 GB, free: 4.445 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/1.214, allocations: 1.351 MB / 0.6782 GB, free: 2.973 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002345/1.216, allocations: 0.9859 MB / 0.6791 GB, free: 1.992 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/1.216, allocations: 4 kB / 0.6791 GB, free: 1.988 MB / 490.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.006991/1.223, allocations: 3.053 MB / 0.6821 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/1.224, allocations: 11.89 kB / 0.6821 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.144e-05/1.224, allocations: 12 kB / 0.6821 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/1.226, allocations: 1.001 MB / 0.6831 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003556/1.23, allocations: 0.788 MB / 0.6839 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/1.243, allocations: 6.959 MB / 0.6907 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004061/1.247, allocations: 255.8 kB / 0.6909 GB, free: 5.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008554/1.248, allocations: 124 kB / 0.691 GB, free: 5.449 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.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: 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: 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: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001597/1.249, allocations: 201.5 kB / 0.6912 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.25, allocations: 201.6 kB / 0.6914 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00756/1.258, allocations: 2.167 MB / 0.6935 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-05/1.258, allocations: 36 kB / 0.6936 GB, free: 2.816 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.534e-05/1.258, allocations: 4 kB / 0.6936 GB, free: 2.812 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.477e-05/1.258, allocations: 15.94 kB / 0.6936 GB, free: 2.797 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02214/1.28, allocations: 6.897 MB / 0.7003 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.404e-05/1.28, allocations: 8.156 kB / 0.7003 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005605/1.286, allocations: 0.7764 MB / 0.7011 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003615/1.29, allocations: 0.988 MB / 0.7021 GB, free: 9.93 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005594/1.29, allocations: 63.91 kB / 0.7021 GB, free: 9.867 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2662/1.557, allocations: 9.47 MB / 0.7114 GB, free: 207 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.6e-05/1.557, allocations: 21.94 kB / 0.7114 GB, free: 207 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01141/1.568, allocations: 5.31 MB / 0.7166 GB, free: 205.4 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01382/1.582, allocations: 7.053 MB / 0.7235 GB, free: 203.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/1.584, allocations: 0.5221 MB / 0.724 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006199/1.584, allocations: 32.02 kB / 0.724 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003337/1.588, allocations: 273.1 kB / 0.7243 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009499/1.589, allocations: 383.5 kB / 0.7246 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/1.589, allocations: 123.8 kB / 0.7247 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0009913/1.59, allocations: 0.5496 MB / 0.7253 GB, free: 203.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005054/1.595, allocations: 0.5985 MB / 0.7259 GB, free: 203.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007605/1.596, allocations: 216.7 kB / 0.7261 GB, free: 203.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007043/1.603, allocations: 2.821 MB / 0.7288 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.603, allocations: 0 / 0.7288 GB, free: 202.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007292/1.61, allocations: 2.373 MB / 0.7311 GB, free: 202.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003369/1.614, allocations: 231.7 kB / 0.7314 GB, free: 202.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/1.629, allocations: 5.211 MB / 0.7365 GB, free: 200.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003106/1.632, allocations: 1.837 MB / 0.7383 GB, free: 199.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.643e-06/1.632, allocations: 3.188 kB / 0.7383 GB, free: 199.8 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1)