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) 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/PlanarMechanics 1.6.0/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006199/0.006199, allocations: 101.2 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 198.5 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1506/0.1506, allocations: 9.102 MB / 299.6 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.84 kB / 414.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2245, allocations: 51.43 MB / 465.6 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.009113/0.2337, allocations: 10.09 MB / 475.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005904/0.2396, allocations: 2.894 MB / 478.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001722/0.2414, allocations: 43.31 kB / 478.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.2427, allocations: 430.6 kB / 479 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004263/0.2469, allocations: 1.601 MB / 480.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000718/0.2477, allocations: 184.6 kB / 480.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00369/0.2514, allocations: 2.96 MB / 483.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.253, allocations: 1.059 MB / 484.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.255, allocations: 1.081 MB / 485.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.2576, allocations: 1.58 MB / 487.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001326/0.259, allocations: 266.4 kB / 487.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002901/0.2619, allocations: 0.8627 MB / 488.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002053/0.264, allocations: 1.488 MB / 490.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002682/0.2667, allocations: 1.861 MB / 491.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007561/0.2742, allocations: 5.779 MB / 497.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2743, allocations: 4 kB / 497.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2743, allocations: 0 / 497.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001698/0.2745, allocations: 0 / 497.7 MB, free: 11.97 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.02613/0.3006, allocations: 6.961 MB / 0.4929 GB, free: 4.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.3007, allocations: 12.03 kB / 0.4929 GB, free: 4.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001245/0.3019, allocations: 0.6384 MB / 0.4935 GB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007016/0.309, allocations: 1.856 MB / 0.4953 GB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003611/0.3126, allocations: 1.721 MB / 0.497 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.3128, allocations: 188.9 kB / 0.4972 GB, free: 476 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006216/0.3134, allocations: 247.7 kB / 0.4974 GB, free: 228 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.3322, allocations: 10.41 MB / 0.5076 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.3323, allocations: 31.7 kB / 0.5076 GB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005057/0.3329, allocations: 111.8 kB / 0.5077 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003459/0.3363, allocations: 2.154 MB / 0.5098 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02288/0.3592, allocations: 10.36 MB / 0.5199 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04795/0.4072, allocations: 33.43 MB / 0.5526 GB, free: 6.508 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01684/0.4241, allocations: 4.446 MB / 0.5569 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00263/0.4268, allocations: 1.658 MB / 0.5585 GB, free: 264 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/0.4387, allocations: 9.386 MB / 0.5677 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.4388, allocations: 52.56 kB / 0.5678 GB, free: 5.836 MB / 446.1 MB Notification: Performance of pre-optimization done (n=232): time 4.889e-06/0.4388, allocations: 0 / 0.5678 GB, free: 5.836 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.02998/0.4688, allocations: 13.3 MB / 0.5807 GB, free: 8.336 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00425/0.4731, allocations: 3.527 MB / 0.5842 GB, free: 4.645 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004852/0.478, allocations: 3.095 MB / 0.5872 GB, free: 1.527 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003662/0.4784, allocations: 61.7 kB / 0.5873 GB, free: 1.461 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1925/0.6708, allocations: 2.408 MB / 0.5896 GB, free: 112.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/0.672, allocations: 0.9855 MB / 0.5906 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/0.6738, allocations: 1.072 MB / 0.5916 GB, free: 111.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.121e-05/0.6739, allocations: 305 kB / 0.5919 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/0.6774, allocations: 1.883 MB / 0.5938 GB, free: 110.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005184/0.6826, allocations: 4.64 MB / 0.5983 GB, free: 106.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.6927, allocations: 7.105 MB / 0.6052 GB, free: 100.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001764/0.693, allocations: 27.44 kB / 0.6053 GB, free: 100.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01453/0.7075, allocations: 6.999 MB / 0.6121 GB, free: 98.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.527e-05/0.7076, allocations: 45.06 kB / 0.6121 GB, free: 98.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/0.7078, allocations: 97.47 kB / 0.6122 GB, free: 98.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.7091, allocations: 0.5437 MB / 0.6128 GB, free: 97.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003925/0.713, allocations: 1.211 MB / 0.6139 GB, free: 97.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007683/0.7207, allocations: 7.367 MB / 0.6211 GB, free: 93.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.7245, allocations: 273.7 kB / 0.6214 GB, free: 93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006507/0.7252, allocations: 315.7 kB / 0.6217 GB, free: 92.95 MB / 462.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.002579/0.7278, allocations: 1.852 MB / 0.6235 GB, free: 92.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/0.7282, allocations: 289.8 kB / 0.6238 GB, free: 91.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005183/0.7334, allocations: 3.787 MB / 0.6275 GB, free: 90.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/0.7336, allocations: 42.22 kB / 0.6275 GB, free: 90.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.7336, allocations: 14.97 kB / 0.6275 GB, free: 90.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-05/0.7336, allocations: 11.44 kB / 0.6275 GB, free: 90.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/0.7479, allocations: 10.61 MB / 0.6379 GB, free: 82.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.7479, allocations: 8 kB / 0.6379 GB, free: 82.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.7493, allocations: 379.4 kB / 0.6383 GB, free: 82.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.7505, allocations: 0.558 MB / 0.6388 GB, free: 81.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.7507, allocations: 54.81 kB / 0.6389 GB, free: 81.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007231/0.7579, allocations: 8.097 MB / 0.6468 GB, free: 73.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002537/0.7605, allocations: 3.285 MB / 0.65 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006529/0.767, allocations: 5.759 MB / 0.6556 GB, free: 64.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.7682, allocations: 0.6222 MB / 0.6562 GB, free: 63.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000453/0.7687, allocations: 48 kB / 0.6563 GB, free: 63.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.7699, allocations: 115.9 kB / 0.6564 GB, free: 63.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.7702, allocations: 181.6 kB / 0.6566 GB, free: 63.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.7704, allocations: 79.58 kB / 0.6566 GB, free: 63.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002348/0.7727, allocations: 1.984 MB / 0.6586 GB, free: 61.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7727, allocations: 4 kB / 0.6586 GB, free: 61.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003996/0.7767, allocations: 0.9774 MB / 0.6595 GB, free: 60.21 MB / 462.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.007055/0.7838, allocations: 6.446 MB / 0.6658 GB, free: 53.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.7905, allocations: 5.011 MB / 0.6707 GB, free: 48.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.7905, allocations: 0.625 kB / 0.6707 GB, free: 48.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002627/0.7931, allocations: 2.105 MB / 0.6728 GB, free: 46.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/0.7954, allocations: 473.3 kB / 0.6732 GB, free: 46.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04504/0.8405, allocations: 38.23 MB / 0.7106 GB, free: 3.578 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002933/0.8435, allocations: 2.992 MB / 0.7135 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003474/0.847, allocations: 1.602 MB / 0.715 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002512/0.8495, allocations: 1.651 MB / 0.7167 GB, free: 13.29 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.8495, allocations: 0 / 0.7167 GB, free: 13.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/0.9637, allocations: 66.68 MB / 0.7818 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/18.38, allocations: 0 / 0.7818 GB, free: 10.93 MB / 0.5294 GB (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 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)