Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 222.3 kB / 22.25 MB, free: 5.109 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04836/0.04836, allocations: 9.242 MB / 321.7 MB, free: 9.859 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.91 kB / 447.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1232, allocations: 55.47 MB / 0.4913 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01265/0.1359, allocations: 8.838 MB / 0.5 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008245/0.1441, allocations: 2.796 MB / 0.5027 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.146, allocations: 47.81 kB / 0.5028 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.1473, allocations: 448.9 kB / 0.5032 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004443/0.1517, allocations: 1.646 MB / 0.5048 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.1523, allocations: 183.7 kB / 0.505 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004009/0.1563, allocations: 2.926 MB / 0.5078 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001485/0.1578, allocations: 0.8713 MB / 0.5087 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.1598, allocations: 1.113 MB / 0.5098 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002558/0.1623, allocations: 1.642 MB / 0.5114 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005727/0.1629, allocations: 272 kB / 0.5116 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.1648, allocations: 0.7957 MB / 0.5124 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2773/0.4421, allocations: 1.493 MB / 0.5139 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.4443, allocations: 1.305 MB / 0.5151 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007453/0.4518, allocations: 5.78 MB / 0.5208 GB, free: 8.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4518, allocations: 0.5312 kB / 0.5208 GB, free: 8.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4518, allocations: 3.609 kB / 0.5208 GB, free: 8.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002208/0.452, allocations: 1.094 kB / 0.5208 GB, free: 8.938 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.03123/0.4832, allocations: 7.063 MB / 0.5277 GB, free: 7.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4833, allocations: 12.22 kB / 0.5277 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002852/0.4861, allocations: 0.6366 MB / 0.5283 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008618/0.4947, allocations: 1.877 MB / 0.5301 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005379/0.5001, allocations: 1.687 MB / 0.5318 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.5004, allocations: 182.1 kB / 0.532 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001614/0.5021, allocations: 245 kB / 0.5322 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02545/0.5275, allocations: 10.41 MB / 0.5424 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002964/0.5278, allocations: 38.22 kB / 0.5424 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002074/0.5299, allocations: 118.6 kB / 0.5425 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004487/0.5344, allocations: 2.142 MB / 0.5446 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02491/0.5593, allocations: 10.33 MB / 0.5547 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/0.6213, allocations: 31.83 MB / 0.5858 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01865/0.64, allocations: 3.787 MB / 0.5895 GB, free: 7.652 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/0.6434, allocations: 1.576 MB / 0.591 GB, free: 6.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.6569, allocations: 5.231 MB / 0.5961 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.274e-05/0.657, allocations: 56.56 kB / 0.5962 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of pre-optimization done (n=232): time 5.69e-06/0.657, allocations: 0.8438 kB / 0.5962 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of matching and sorting (n=272): time 0.03419/0.6912, allocations: 12.98 MB / 0.6089 GB, free: 3.816 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005098/0.6963, allocations: 3.392 MB / 0.6122 GB, free: 312 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007295/0.7035, allocations: 3.265 MB / 0.6154 GB, free: 13.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005171/0.7041, allocations: 73.69 kB / 0.6154 GB, free: 12.94 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002551/0.7066, allocations: 2.497 MB / 0.6179 GB, free: 10.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00163/0.7082, allocations: 1.027 MB / 0.6189 GB, free: 9.434 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002845/0.7111, allocations: 1.084 MB / 0.6199 GB, free: 8.344 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.7112, allocations: 309.1 kB / 0.6202 GB, free: 8.039 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004087/0.7153, allocations: 1.885 MB / 0.6221 GB, free: 6.148 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007156/0.7225, allocations: 4.641 MB / 0.6266 GB, free: 224 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01842/0.7409, allocations: 7.102 MB / 0.6335 GB, free: 8.176 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001698/0.7411, allocations: 28 kB / 0.6336 GB, free: 8.148 MB / 478.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02503/0.7661, allocations: 6.99 MB / 0.6404 GB, free: 1.227 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.7662, allocations: 44.97 kB / 0.6404 GB, free: 1.184 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002205/0.7664, allocations: 96 kB / 0.6405 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.7688, allocations: 0.5409 MB / 0.641 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007959/0.7767, allocations: 1.22 MB / 0.6422 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01775/0.7945, allocations: 7.095 MB / 0.6492 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007428/0.8019, allocations: 278 kB / 0.6494 GB, free: 7.727 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001588/0.8035, allocations: 312 kB / 0.6497 GB, free: 7.422 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (656): * Single equations (assignments): 650 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00419/0.8077, allocations: 1.856 MB / 0.6515 GB, free: 5.559 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007109/0.8084, allocations: 313.9 kB / 0.6518 GB, free: 5.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007357/0.8157, allocations: 3.776 MB / 0.6555 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/0.8159, allocations: 35.98 kB / 0.6556 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-05/0.8159, allocations: 8 kB / 0.6556 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/0.8159, allocations: 15.95 kB / 0.6556 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0202/0.8361, allocations: 10.06 MB / 0.6654 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.8361, allocations: 4 kB / 0.6654 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/0.8377, allocations: 380.1 kB / 0.6658 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.8391, allocations: 0.5486 MB / 0.6663 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/0.8393, allocations: 55.98 kB / 0.6664 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.8505, allocations: 7.835 MB / 0.674 GB, free: 14.08 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004136/0.8547, allocations: 3.152 MB / 0.6771 GB, free: 10.81 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009861/0.8645, allocations: 5.755 MB / 0.6827 GB, free: 4.918 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/0.8669, allocations: 0.5486 MB / 0.6833 GB, free: 4.367 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000616/0.8675, allocations: 55.92 kB / 0.6833 GB, free: 4.312 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.8688, allocations: 123.9 kB / 0.6834 GB, free: 4.191 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/0.8692, allocations: 184.7 kB / 0.6836 GB, free: 4.016 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.8694, allocations: 75.98 kB / 0.6837 GB, free: 3.941 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003812/0.8732, allocations: 1.991 MB / 0.6856 GB, free: 1.945 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/0.8732, allocations: 5.781 kB / 0.6856 GB, free: 1.941 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004815/0.878, allocations: 0.9647 MB / 0.6866 GB, free: 0.9766 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 197 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01016/0.8881, allocations: 6.433 MB / 0.6928 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00968/0.8978, allocations: 4.819 MB / 0.6976 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/0.8978, allocations: 0 / 0.6976 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003998/0.9018, allocations: 2.007 MB / 0.6995 GB, free: 3.535 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.9047, allocations: 470.5 kB / 0.7 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3135/1.218, allocations: 38.42 MB / 0.7375 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003766/1.222, allocations: 2.445 MB / 0.7399 GB, free: 174.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003832/1.226, allocations: 1.601 MB / 0.7414 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002132/1.228, allocations: 1.648 MB / 0.743 GB, free: 173.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.228, allocations: 0 / 0.743 GB, free: 173.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1121/1.34, allocations: 66.7 MB / 0.8082 GB, free: 114.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.12/17.46, allocations: 4.062 kB / 0.8082 GB, free: 114.5 MB / 0.545 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.425072547979653] Failed to read output from testmodel.py, exit status != 0: 17.61677462607622 17.628725015 17.174202236 Calling exit ...