Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.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.001559/0.001559, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001689/0.001689, allocations: 215.6 kB / 22.25 MB, free: 5.074 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.407/1.407, allocations: 230.6 MB / 256 MB, free: 8.004 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.04967/0.04967, allocations: 9.231 MB / 321.7 MB, free: 10.04 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.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",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.002001/0.002001, allocations: 63.91 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1052, allocations: 55.48 MB / 0.4914 GB, free: 7.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.0109/0.1161, allocations: 8.66 MB / 0.4999 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005411/0.1215, allocations: 2.783 MB / 0.5026 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006534/0.1222, allocations: 35.88 kB / 0.5026 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007184/0.1229, allocations: 385.4 kB / 0.503 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002946/0.1258, allocations: 1.44 MB / 0.5044 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.1262, allocations: 175.7 kB / 0.5046 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00294/0.1291, allocations: 2.509 MB / 0.507 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009395/0.1301, allocations: 0.7295 MB / 0.5077 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.1311, allocations: 0.9183 MB / 0.5086 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001885/0.133, allocations: 1.432 MB / 0.51 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003108/0.1333, allocations: 239.9 kB / 0.5103 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001491/0.1348, allocations: 0.9323 MB / 0.5112 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.1359, allocations: 1.223 MB / 0.5124 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001555/0.1374, allocations: 1.545 MB / 0.5139 GB, free: 384 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2055/0.3429, allocations: 5.046 MB / 0.5188 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3429, allocations: 0 / 0.5188 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3429, allocations: 2.719 kB / 0.5188 GB, free: 11.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.245e-05/0.343, allocations: 0.5312 kB / 0.5188 GB, free: 11.8 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: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01726/0.3603, allocations: 5.069 MB / 0.5237 GB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3603, allocations: 11.11 kB / 0.5238 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007053/0.361, allocations: 0.5342 MB / 0.5243 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006436/0.3674, allocations: 1.802 MB / 0.526 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002843/0.3703, allocations: 1.39 MB / 0.5274 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.3704, allocations: 145.7 kB / 0.5275 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004631/0.3709, allocations: 193.2 kB / 0.5277 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/0.3844, allocations: 8.46 MB / 0.536 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-05/0.3845, allocations: 19.22 kB / 0.536 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002914/0.3848, allocations: 95.08 kB / 0.5361 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.3876, allocations: 1.88 MB / 0.5379 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.4017, allocations: 8.123 MB / 0.5459 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03372/0.4354, allocations: 25.82 MB / 0.5711 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009193/0.4446, allocations: 2.322 MB / 0.5733 GB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.4463, allocations: 1.015 MB / 0.5743 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006152/0.4524, allocations: 3.15 MB / 0.5774 GB, free: 4.879 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.4525, allocations: 52.56 kB / 0.5775 GB, free: 4.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 2.996e-06/0.4525, allocations: 0 / 0.5775 GB, free: 4.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=173): time 0.01881/0.4713, allocations: 8.112 MB / 0.5854 GB, free: 12.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.4713, allocations: 69.75 kB / 0.5855 GB, free: 12.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004047/0.4754, allocations: 2.624 MB / 0.588 GB, free: 9.965 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002232/0.4756, allocations: 45.7 kB / 0.5881 GB, free: 9.914 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.4772, allocations: 2.141 MB / 0.5902 GB, free: 7.781 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007503/0.4779, allocations: 0.6669 MB / 0.5908 GB, free: 7.125 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001132/0.479, allocations: 0.8103 MB / 0.5916 GB, free: 6.305 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4792, allocations: 305.1 kB / 0.5919 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/0.4815, allocations: 1.371 MB / 0.5932 GB, free: 4.629 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004091/0.4856, allocations: 3.539 MB / 0.5967 GB, free: 64 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006577/0.4922, allocations: 5.299 MB / 0.6019 GB, free: 10.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.956e-05/0.4922, allocations: 20 kB / 0.6019 GB, free: 10 MB / 446.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.00846/0.5007, allocations: 5.12 MB / 0.6069 GB, free: 5.133 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.5007, allocations: 40 kB / 0.6069 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.165e-05/0.5008, allocations: 72.88 kB / 0.607 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008271/0.5016, allocations: 321.5 kB / 0.6073 GB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/0.5045, allocations: 0.8971 MB / 0.6082 GB, free: 3.805 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.5088, allocations: 3.179 MB / 0.6113 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002431/0.5112, allocations: 200 kB / 0.6115 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003628/0.5116, allocations: 236 kB / 0.6117 GB, free: 96 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (490): * Single equations (assignments): 484 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002519/0.5141, allocations: 1.577 MB / 0.6132 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003713/0.5144, allocations: 238.4 kB / 0.6135 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/0.5187, allocations: 2.337 MB / 0.6157 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/0.5188, allocations: 36.91 kB / 0.6158 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5188, allocations: 0 / 0.6158 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5188, allocations: 8.547 kB / 0.6158 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.5302, allocations: 6.183 MB / 0.6218 GB, free: 5.598 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.5302, allocations: 4 kB / 0.6218 GB, free: 5.594 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.5312, allocations: 251.6 kB / 0.6221 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006508/0.5319, allocations: 221.7 kB / 0.6223 GB, free: 5.129 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.957e-05/0.532, allocations: 36.88 kB / 0.6223 GB, free: 5.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/0.5354, allocations: 2.756 MB / 0.625 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.5354, allocations: 7.938 kB / 0.625 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.5412, allocations: 3.59 MB / 0.6285 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006038/0.5419, allocations: 243.4 kB / 0.6287 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004466/0.5423, allocations: 28.84 kB / 0.6288 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.5433, allocations: 71.92 kB / 0.6288 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.5435, allocations: 109 kB / 0.6289 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.5436, allocations: 50.48 kB / 0.629 GB, free: 14.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003328/0.547, allocations: 1.695 MB / 0.6306 GB, free: 12.39 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.547, allocations: 0 / 0.6306 GB, free: 12.39 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003393/0.5504, allocations: 0.6913 MB / 0.6313 GB, free: 11.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * 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 (138): * Single equations (assignments): 132 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006452/0.5568, allocations: 4.261 MB / 0.6355 GB, free: 7.371 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005721/0.5625, allocations: 3.269 MB / 0.6387 GB, free: 4.105 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.5625, allocations: 4 kB / 0.6387 GB, free: 4.102 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.5643, allocations: 1.089 MB / 0.6397 GB, free: 2.996 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.5665, allocations: 403.5 kB / 0.6401 GB, free: 2.621 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04756/0.614, allocations: 29.14 MB / 0.6686 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003382/0.6174, allocations: 2.592 MB / 0.6711 GB, free: 44 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002807/0.6202, allocations: 1.228 MB / 0.6723 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002023/0.6223, allocations: 1.323 MB / 0.6736 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of SimCode: time 5.71e-07/0.6223, allocations: 0 / 0.6736 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2976/0.9198, allocations: 53.31 MB / 0.7257 GB, free: 184.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/19.96, allocations: 2.625 kB / 0.7257 GB, free: 184.6 MB / 0.545 GB " [Timeout remaining time 640] (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.55392559990287] Failed to read output from testmodel.py, exit status != 0: 20.095319123007357 20.111463083 19.765684506 Calling exit ...