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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 102.1 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.6 MB / 247.8 MB, free: 3.719 MB / 190.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.04757/0.04757, allocations: 9.234 MB / 311.9 MB, free: 1.891 MB / 238.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.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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 67.88 kB / 434 MB, free: 11.28 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2549, allocations: 54.25 MB / 488.3 MB, free: 25.14 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.009478/0.2643, allocations: 10.14 MB / 498.4 MB, free: 17.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006227/0.2706, allocations: 2.915 MB / 0.4896 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.2721, allocations: 40.91 kB / 0.4896 GB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.2732, allocations: 448.7 kB / 0.4901 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00461/0.2778, allocations: 1.643 MB / 0.4917 GB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008054/0.2786, allocations: 186.3 kB / 0.4918 GB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004236/0.2829, allocations: 2.972 MB / 0.4947 GB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.2844, allocations: 0.8942 MB / 0.4956 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/0.2864, allocations: 1.085 MB / 0.4967 GB, free: 11.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.2888, allocations: 1.73 MB / 0.4984 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008228/0.2896, allocations: 266.6 kB / 0.4986 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.2917, allocations: 0.8963 MB / 0.4995 GB, free: 9.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.2934, allocations: 1.523 MB / 0.501 GB, free: 9.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002525/0.2959, allocations: 1.859 MB / 0.5028 GB, free: 7.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007121/0.303, allocations: 5.812 MB / 0.5085 GB, free: 3.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.303, allocations: 0 / 0.5085 GB, free: 3.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.303, allocations: 0 / 0.5085 GB, free: 3.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.3032, allocations: 0 / 0.5085 GB, free: 3.551 MB / 366.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.02738/0.3306, allocations: 7.072 MB / 0.5154 GB, free: 12.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3307, allocations: 8.031 kB / 0.5154 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001609/0.3323, allocations: 0.6461 MB / 0.516 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007389/0.3397, allocations: 1.874 MB / 0.5178 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004602/0.3443, allocations: 1.729 MB / 0.5195 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.3444, allocations: 184.9 kB / 0.5197 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000935/0.3454, allocations: 251.7 kB / 0.52 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02181/0.3672, allocations: 10.4 MB / 0.5301 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.3673, allocations: 35.75 kB / 0.5301 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005365/0.3678, allocations: 115.8 kB / 0.5303 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003746/0.3716, allocations: 2.15 MB / 0.5324 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02469/0.3963, allocations: 10.36 MB / 0.5425 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05655/0.4528, allocations: 33.51 MB / 0.5752 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01814/0.471, allocations: 4.325 MB / 0.5794 GB, free: 9.414 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003074/0.474, allocations: 1.58 MB / 0.581 GB, free: 7.828 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01551/0.4895, allocations: 9.399 MB / 0.5901 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.4896, allocations: 48.56 kB / 0.5902 GB, free: 13.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=232): time 6.612e-06/0.4896, allocations: 8 kB / 0.5902 GB, free: 13.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03292/0.5225, allocations: 13.35 MB / 0.6032 GB, free: 15.85 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004833/0.5273, allocations: 3.518 MB / 0.6067 GB, free: 12.17 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/0.5325, allocations: 3.108 MB / 0.6097 GB, free: 9.043 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004206/0.5329, allocations: 65.7 kB / 0.6098 GB, free: 8.973 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002187/0.5351, allocations: 2.513 MB / 0.6122 GB, free: 6.434 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/0.5364, allocations: 1.027 MB / 0.6132 GB, free: 5.398 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001773/0.5382, allocations: 1.077 MB / 0.6143 GB, free: 4.312 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.5383, allocations: 301.1 kB / 0.6146 GB, free: 4.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003385/0.5417, allocations: 1.885 MB / 0.6164 GB, free: 2.125 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2088/0.7504, allocations: 4.638 MB / 0.6209 GB, free: 114.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008808/0.7593, allocations: 7.106 MB / 0.6279 GB, free: 109.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.7594, allocations: 28.03 kB / 0.6279 GB, free: 109.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.0127/0.7721, allocations: 6.985 MB / 0.6347 GB, free: 106.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.7722, allocations: 44.78 kB / 0.6348 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.7723, allocations: 94.84 kB / 0.6348 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.7736, allocations: 0.5487 MB / 0.6354 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/0.7775, allocations: 1.218 MB / 0.6366 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008572/0.7861, allocations: 7.369 MB / 0.6438 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004186/0.7903, allocations: 279.3 kB / 0.644 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000891/0.7912, allocations: 313.7 kB / 0.6443 GB, free: 101.9 MB / 478.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.00377/0.7949, allocations: 1.854 MB / 0.6461 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005543/0.7955, allocations: 308.2 kB / 0.6464 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006011/0.8015, allocations: 3.762 MB / 0.6501 GB, free: 99.57 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00012/0.8016, allocations: 44.89 kB / 0.6502 GB, free: 99.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.8016, allocations: 12.22 kB / 0.6502 GB, free: 99.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/0.8017, allocations: 14.67 kB / 0.6502 GB, free: 99.57 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/0.8178, allocations: 10.6 MB / 0.6605 GB, free: 95.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.8178, allocations: 3.938 kB / 0.6605 GB, free: 95.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.8192, allocations: 384.5 kB / 0.6609 GB, free: 95.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.8203, allocations: 0.5494 MB / 0.6614 GB, free: 95.16 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.8205, allocations: 54.33 kB / 0.6615 GB, free: 95.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007726/0.8282, allocations: 8.105 MB / 0.6694 GB, free: 87.35 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002777/0.831, allocations: 3.278 MB / 0.6726 GB, free: 83.93 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/0.8377, allocations: 5.752 MB / 0.6782 GB, free: 78.04 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/0.8393, allocations: 0.6338 MB / 0.6788 GB, free: 77.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/0.8396, allocations: 48 kB / 0.6789 GB, free: 77.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.8408, allocations: 127.7 kB / 0.679 GB, free: 77.22 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.8411, allocations: 181.6 kB / 0.6792 GB, free: 77.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8412, allocations: 75.98 kB / 0.6793 GB, free: 76.97 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.8436, allocations: 1.984 MB / 0.6812 GB, free: 74.98 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8436, allocations: 0 / 0.6812 GB, free: 74.98 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003886/0.8475, allocations: 0.9729 MB / 0.6821 GB, free: 74.02 MB / 478.1 MB 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.006504/0.854, allocations: 6.442 MB / 0.6884 GB, free: 67.44 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006539/0.8605, allocations: 4.827 MB / 0.6932 GB, free: 62.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8605, allocations: 2.625 kB / 0.6932 GB, free: 62.61 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.8629, allocations: 1.992 MB / 0.6951 GB, free: 60.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.8651, allocations: 464.5 kB / 0.6955 GB, free: 60.14 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04641/0.9115, allocations: 38.34 MB / 0.733 GB, free: 17.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003266/0.9148, allocations: 3.004 MB / 0.7359 GB, free: 14.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00324/0.918, allocations: 1.599 MB / 0.7375 GB, free: 12.96 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001932/0.92, allocations: 1.647 MB / 0.7391 GB, free: 11.31 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.92, allocations: 0 / 0.7391 GB, free: 11.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1611/1.081, allocations: 66.11 MB / 0.8036 GB, free: 9.477 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/18.14, allocations: 16.62 kB / 0.8037 GB, free: 9.461 MB / 0.5294 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.801496715284884] Failed to read output from testmodel.py, exit status != 0: 18.26889667985961 18.293201133 17.985511434 Calling exit ...