Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",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.001709/0.001708, allocations: 193 kB / 7.806 MB, free: 2.488 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.422/1.422, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009554/0.0009553, allocations: 89.56 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.2189/0.2189, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1956/0.4146, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.7103, allocations: 58.83 MB / 476.6 MB, free: 5.16 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.8362, allocations: 90.72 MB / 0.5541 GB, free: 8.176 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.8366, allocations: 63.95 kB / 0.5541 GB, free: 8.113 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.03751/0.8741, allocations: 12.68 MB / 0.5665 GB, free: 11.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.8742, allocations: 8 kB / 0.5665 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004005/0.8746, allocations: 79.06 kB / 0.5666 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.8757, allocations: 416.6 kB / 0.567 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.8758, allocations: 23.98 kB / 0.567 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.876, allocations: 43.91 kB / 0.5671 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001512/0.8776, allocations: 0.5727 MB / 0.5676 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.8789, allocations: 0.6631 MB / 0.5683 GB, free: 9.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.879, allocations: 7.906 kB / 0.5683 GB, free: 9.473 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.909e-05/0.8791, allocations: 4 kB / 0.5683 GB, free: 9.469 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.8791, allocations: 12 kB / 0.5683 GB, free: 9.457 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005032/0.8841, allocations: 2.508 MB / 0.5707 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008265/0.885, allocations: 442.9 kB / 0.5712 GB, free: 6.383 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000494/0.8855, allocations: 318.1 kB / 0.5715 GB, free: 6.062 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.41e-05/0.8856, allocations: 11.98 kB / 0.5715 GB, free: 6.051 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.8856, allocations: 46.97 kB / 0.5715 GB, free: 5.996 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 4.629e-06/0.8857, allocations: 0 / 0.5715 GB, free: 5.996 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.004863/0.8905, allocations: 2.31 MB / 0.5738 GB, free: 3.492 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/0.8906, allocations: 140.5 kB / 0.5739 GB, free: 3.324 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.891, allocations: 301.1 kB / 0.5742 GB, free: 3.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.039e-05/0.8911, allocations: 41.69 kB / 0.5742 GB, free: 2.977 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.8912, allocations: 212.7 kB / 0.5744 GB, free: 2.762 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.8915, allocations: 272.2 kB / 0.5747 GB, free: 2.492 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/0.8916, allocations: 4 kB / 0.5747 GB, free: 2.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8917, allocations: 370.8 kB / 0.575 GB, free: 2.117 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.8922, allocations: 298 kB / 0.5753 GB, free: 1.824 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006311/0.8929, allocations: 448.7 kB / 0.5758 GB, free: 1.336 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006992/0.8936, allocations: 265.8 kB / 0.576 GB, free: 1.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.8936, allocations: 4 kB / 0.576 GB, free: 1.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002512/0.8961, allocations: 1.047 MB / 0.577 GB, free: 16 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.8961, allocations: 4 kB / 0.577 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/0.8962, allocations: 15.97 kB / 0.5771 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.8973, allocations: 0.5773 MB / 0.5776 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005902/0.8979, allocations: 151.8 kB / 0.5778 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002405/0.9004, allocations: 2.674 MB / 0.5804 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.9014, allocations: 195.7 kB / 0.5806 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.9015, allocations: 43.97 kB / 0.5806 GB, free: 12.24 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($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,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.9018, allocations: 138.9 kB / 0.5807 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.902, allocations: 67.25 kB / 0.5808 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.9043, allocations: 0.9926 MB / 0.5818 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.9044, allocations: 12 kB / 0.5818 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.9044, allocations: 0 / 0.5818 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.9044, allocations: 7.984 kB / 0.5818 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003639/0.908, allocations: 1.894 MB / 0.5836 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.9081, allocations: 0 / 0.5836 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006651/0.9087, allocations: 127.9 kB / 0.5838 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.9098, allocations: 0.5306 MB / 0.5843 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/0.9099, allocations: 27.95 kB / 0.5843 GB, free: 8.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.9122, allocations: 2.615 MB / 0.5869 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.9122, allocations: 4.188 kB / 0.5869 GB, free: 5.613 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002767/0.915, allocations: 1.594 MB / 0.5884 GB, free: 3.945 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003537/0.9185, allocations: 2.31 MB / 0.5907 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004399/0.919, allocations: 216.2 kB / 0.5909 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.9192, allocations: 12 kB / 0.5909 GB, free: 1.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.9204, allocations: 191.8 kB / 0.5911 GB, free: 1.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003608/0.9207, allocations: 171.5 kB / 0.5912 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.9208, allocations: 35.95 kB / 0.5913 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003222/0.9212, allocations: 243.2 kB / 0.5915 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001611/0.9228, allocations: 171.9 kB / 0.5917 GB, free: 0.5273 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004308/0.9232, allocations: 147.3 kB / 0.5918 GB, free: 380 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.9253, allocations: 0.8892 MB / 0.5927 GB, free: 15.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.9254, allocations: 0 / 0.5927 GB, free: 15.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.9265, allocations: 448.4 kB / 0.5931 GB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.9273, allocations: 81.61 kB / 0.5932 GB, free: 14.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.931, allocations: 1.607 MB / 0.5948 GB, free: 13.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007574/0.9318, allocations: 0.9888 MB / 0.5957 GB, free: 12.28 MB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.9318, allocations: 4 kB / 0.5957 GB, free: 12.28 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1)