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.001539/0.001539, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001611/0.001611, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.996 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.04937/0.04937, allocations: 9.23 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.003404/0.003404, allocations: 71.89 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1614, allocations: 55.46 MB / 0.4914 GB, free: 7.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01168/0.173, allocations: 8.676 MB / 0.4999 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006879/0.1799, allocations: 2.783 MB / 0.5026 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1815, allocations: 39.88 kB / 0.5026 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1826, allocations: 377.5 kB / 0.503 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004538/0.1872, allocations: 1.447 MB / 0.5044 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.188, allocations: 171.7 kB / 0.5046 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0046/0.1926, allocations: 2.501 MB / 0.507 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.1942, allocations: 0.7217 MB / 0.5077 GB, free: 6.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002205/0.1964, allocations: 0.9222 MB / 0.5086 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.1992, allocations: 1.436 MB / 0.51 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008369/0.2, allocations: 232 kB / 0.5102 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002352/0.2023, allocations: 0.9361 MB / 0.5112 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.2039, allocations: 1.223 MB / 0.5124 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002566/0.2064, allocations: 1.545 MB / 0.5139 GB, free: 388 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2996/0.506, allocations: 5.043 MB / 0.5188 GB, free: 11.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.506, allocations: 0 / 0.5188 GB, free: 11.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.506, allocations: 0.5312 kB / 0.5188 GB, free: 11.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002254/0.5063, allocations: 0 / 0.5188 GB, free: 11.79 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.02127/0.5275, allocations: 5.078 MB / 0.5238 GB, free: 10.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.5276, allocations: 9.594 kB / 0.5238 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002023/0.5296, allocations: 0.5394 MB / 0.5243 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007814/0.5374, allocations: 1.796 MB / 0.526 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004552/0.542, allocations: 1.386 MB / 0.5274 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.5422, allocations: 147.3 kB / 0.5275 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.5436, allocations: 196.5 kB / 0.5277 GB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.5638, allocations: 8.455 MB / 0.536 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.5639, allocations: 24.97 kB / 0.536 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005734/0.5645, allocations: 92.56 kB / 0.5361 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00335/0.5678, allocations: 1.88 MB / 0.5379 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01825/0.5861, allocations: 8.129 MB / 0.5459 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04775/0.6338, allocations: 25.83 MB / 0.5711 GB, free: 11.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/0.6443, allocations: 2.316 MB / 0.5734 GB, free: 9.055 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.6464, allocations: 1.013 MB / 0.5743 GB, free: 8.043 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007946/0.6544, allocations: 3.152 MB / 0.5774 GB, free: 4.914 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.6544, allocations: 47.62 kB / 0.5775 GB, free: 4.863 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.458e-06/0.6544, allocations: 0 / 0.5775 GB, free: 4.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=173): time 0.02194/0.6764, allocations: 8.113 MB / 0.5854 GB, free: 12.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.6764, allocations: 64.72 kB / 0.5855 GB, free: 12.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004891/0.6813, allocations: 2.622 MB / 0.588 GB, free: 10 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002951/0.6816, allocations: 57.36 kB / 0.5881 GB, free: 9.945 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.6835, allocations: 2.139 MB / 0.5902 GB, free: 7.816 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009259/0.6844, allocations: 0.6613 MB / 0.5908 GB, free: 7.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/0.6856, allocations: 0.8099 MB / 0.5916 GB, free: 6.344 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6858, allocations: 309.1 kB / 0.5919 GB, free: 6.039 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/0.6884, allocations: 1.366 MB / 0.5932 GB, free: 4.668 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004671/0.693, allocations: 3.538 MB / 0.5967 GB, free: 100 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007795/0.7008, allocations: 5.304 MB / 0.6019 GB, free: 10.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.19e-05/0.7009, allocations: 20 kB / 0.6019 GB, free: 10.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01141/0.7123, allocations: 5.117 MB / 0.6069 GB, free: 5.156 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.337e-05/0.7124, allocations: 40 kB / 0.6069 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.7125, allocations: 72 kB / 0.607 GB, free: 5.047 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009446/0.7135, allocations: 323.2 kB / 0.6073 GB, free: 4.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/0.7168, allocations: 0.8976 MB / 0.6082 GB, free: 3.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004582/0.7214, allocations: 3.182 MB / 0.6113 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003298/0.7247, allocations: 197.3 kB / 0.6115 GB, free: 356 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006788/0.7254, allocations: 236 kB / 0.6117 GB, free: 120 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.003486/0.7289, allocations: 1.576 MB / 0.6132 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005237/0.7294, allocations: 242.5 kB / 0.6135 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004824/0.7342, allocations: 2.333 MB / 0.6157 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/0.7343, allocations: 38.61 kB / 0.6158 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.7344, allocations: 7.172 kB / 0.6158 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/0.7344, allocations: 4.547 kB / 0.6158 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/0.748, allocations: 6.179 MB / 0.6218 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.748, allocations: 4 kB / 0.6218 GB, free: 5.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.7491, allocations: 256 kB / 0.6221 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/0.7498, allocations: 216.1 kB / 0.6223 GB, free: 5.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.75, allocations: 35.98 kB / 0.6223 GB, free: 5.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003627/0.7536, allocations: 2.757 MB / 0.625 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.7536, allocations: 7.938 kB / 0.625 GB, free: 2.266 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006202/0.7598, allocations: 3.597 MB / 0.6285 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007731/0.7606, allocations: 238.4 kB / 0.6287 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003851/0.761, allocations: 31.98 kB / 0.6288 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009171/0.7619, allocations: 71.92 kB / 0.6288 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.7621, allocations: 105 kB / 0.6289 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.7622, allocations: 54.95 kB / 0.629 GB, free: 14.13 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003201/0.7654, allocations: 1.691 MB / 0.6306 GB, free: 12.42 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7654, allocations: 0 / 0.6306 GB, free: 12.42 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003544/0.769, allocations: 0.6913 MB / 0.6313 GB, free: 11.73 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.006799/0.7758, allocations: 4.264 MB / 0.6355 GB, free: 7.402 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006686/0.7825, allocations: 3.27 MB / 0.6387 GB, free: 4.137 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.7825, allocations: 4 kB / 0.6387 GB, free: 4.133 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.7845, allocations: 1.093 MB / 0.6398 GB, free: 3.023 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.7869, allocations: 393.2 kB / 0.6401 GB, free: 2.652 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05645/0.8433, allocations: 29.13 MB / 0.6686 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003943/0.8473, allocations: 2.591 MB / 0.6711 GB, free: 76 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003353/0.8506, allocations: 1.224 MB / 0.6723 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/0.8532, allocations: 1.323 MB / 0.6736 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of SimCode: time 1.683e-06/0.8532, allocations: 0 / 0.6736 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3789/1.232, allocations: 53.33 MB / 0.7257 GB, free: 184.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.47/22.7, allocations: 5.547 kB / 0.7257 GB, free: 184.5 MB / 0.545 GB " [Timeout remaining time 637] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.65635077600018] Failed to read output from testmodel.py, exit status != 0: 22.85329037199699 22.874967404 22.364008464 Calling exit ...