Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 181.4 kB / 8.519 MB, free: 1.824 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.324/1.324, allocations: 221.4 MB / 230.3 MB, free: 7.777 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.0009438/0.0009437, allocations: 94.17 kB / 281.2 MB, free: 5.574 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.2166/0.2166, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2472/0.4639, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.5952, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.9362, allocations: 91.95 MB / 0.584 GB, free: 4.742 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.9365, allocations: 67.28 kB / 0.584 GB, free: 4.68 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.03847/0.9749, allocations: 12.88 MB / 0.5966 GB, free: 7.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.975, allocations: 15.94 kB / 0.5966 GB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.9752, allocations: 75.06 kB / 0.5967 GB, free: 7.641 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.9759, allocations: 404.8 kB / 0.5971 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.9759, allocations: 24 kB / 0.5971 GB, free: 7.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.9761, allocations: 43.91 kB / 0.5972 GB, free: 7.137 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001088/0.9771, allocations: 0.5765 MB / 0.5977 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.9783, allocations: 0.6593 MB / 0.5984 GB, free: 5.867 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.723e-05/0.9784, allocations: 11.91 kB / 0.5984 GB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.9784, allocations: 0 / 0.5984 GB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.9785, allocations: 16 kB / 0.5984 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004455/0.9829, allocations: 2.504 MB / 0.6008 GB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000803/0.9837, allocations: 447.8 kB / 0.6013 GB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004812/0.9842, allocations: 320.7 kB / 0.6016 GB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-05/0.9843, allocations: 15.98 kB / 0.6016 GB, free: 2.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.9844, allocations: 50.55 kB / 0.6016 GB, free: 2.371 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.825e-06/0.9844, allocations: 3.938 kB / 0.6016 GB, free: 2.367 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.004601/0.989, allocations: 2.299 MB / 0.6039 GB, free: 15.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.9891, allocations: 140.5 kB / 0.604 GB, free: 15.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.9895, allocations: 305 kB / 0.6043 GB, free: 15.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.13e-05/0.9896, allocations: 33.7 kB / 0.6043 GB, free: 15.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.9897, allocations: 220.7 kB / 0.6045 GB, free: 15.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.99, allocations: 272.2 kB / 0.6048 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-05/0.9901, allocations: 0 / 0.6048 GB, free: 14.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.9902, allocations: 370.8 kB / 0.6052 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005082/0.9907, allocations: 301.7 kB / 0.6054 GB, free: 14.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.9913, allocations: 452.7 kB / 0.6059 GB, free: 13.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006931/0.992, allocations: 264.2 kB / 0.6061 GB, free: 13.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.992, allocations: 4 kB / 0.6061 GB, free: 13.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002441/0.9945, allocations: 1.06 MB / 0.6072 GB, free: 12.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.9945, allocations: 4 kB / 0.6072 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-05/0.9945, allocations: 8 kB / 0.6072 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.9957, allocations: 0.5773 MB / 0.6077 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.9964, allocations: 143.8 kB / 0.6079 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.9992, allocations: 2.67 MB / 0.6105 GB, free: 8.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/1, allocations: 203.7 kB / 0.6107 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/1, allocations: 43.98 kB / 0.6107 GB, free: 8.621 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.0003371/1.001, allocations: 142.7 kB / 0.6109 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/1.001, allocations: 63.25 kB / 0.6109 GB, free: 8.414 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/1.004, allocations: 0.9889 MB / 0.6119 GB, free: 7.395 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/1.004, allocations: 8 kB / 0.6119 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/1.004, allocations: 4 kB / 0.6119 GB, free: 7.383 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/1.004, allocations: 3.984 kB / 0.6119 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/1.008, allocations: 1.896 MB / 0.6138 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/1.008, allocations: 4 kB / 0.6138 GB, free: 5.414 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/1.008, allocations: 131.9 kB / 0.6139 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/1.009, allocations: 0.5342 MB / 0.6144 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-05/1.01, allocations: 27.95 kB / 0.6144 GB, free: 4.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002424/1.012, allocations: 2.608 MB / 0.617 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/1.012, allocations: 0 / 0.617 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002647/1.015, allocations: 1.594 MB / 0.6185 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003275/1.018, allocations: 2.325 MB / 0.6208 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003688/1.018, allocations: 208.2 kB / 0.621 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/1.018, allocations: 16 kB / 0.621 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/1.019, allocations: 191.8 kB / 0.6212 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/1.02, allocations: 167.6 kB / 0.6214 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/1.02, allocations: 39.86 kB / 0.6214 GB, free: 13.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0002767/1.02, allocations: 247.1 kB / 0.6216 GB, free: 13.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00153/1.022, allocations: 167.9 kB / 0.6218 GB, free: 12.91 MB / 442.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.000333/1.022, allocations: 151 kB / 0.6219 GB, free: 12.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001774/1.024, allocations: 0.8782 MB / 0.6228 GB, free: 11.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.024, allocations: 4 kB / 0.6228 GB, free: 11.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/1.025, allocations: 435.6 kB / 0.6232 GB, free: 11.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007832/1.026, allocations: 82.09 kB / 0.6233 GB, free: 11.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/1.029, allocations: 1.603 MB / 0.6249 GB, free: 9.691 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006717/1.03, allocations: 0.9884 MB / 0.6258 GB, free: 8.672 MB / 442.7 MB Notification: Performance of SimCode: time 8.41e-07/1.03, allocations: 0 / 0.6258 GB, free: 8.672 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1)