Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.0007837/0.0007837, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008316/0.0008316, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8792/0.8792, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.02722/0.02722, allocations: 7.123 MB / 266.3 MB, free: 6.309 MB / 250.7 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.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.17e-05/1.347e-05, allocations: 2.281 kB / 392.4 MB, free: 3.977 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.006604/0.006618, allocations: 9.164 MB / 401.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.009853, allocations: 2.877 MB / 404.4 MB, free: 7.883 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004141/0.01027, allocations: 51.81 kB / 404.5 MB, free: 7.832 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006316/0.0109, allocations: 464.6 kB / 404.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00202/0.01292, allocations: 1.691 MB / 406.6 MB, free: 5.676 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.01319, allocations: 219.5 kB / 406.8 MB, free: 5.461 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.01514, allocations: 3.064 MB / 409.9 MB, free: 2.391 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008042/0.01594, allocations: 0.9872 MB / 410.9 MB, free: 1.383 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1467/0.1626, allocations: 1.678 MB / 412.6 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00208/0.1647, allocations: 1.514 MB / 414.1 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005202/0.1652, allocations: 276.5 kB / 414.4 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.1664, allocations: 0.8716 MB / 415.2 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008393/0.1673, allocations: 1.454 MB / 416.7 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008148/0.1681, allocations: 0.9996 MB / 417.7 MB, free: 16.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.1724, allocations: 5.672 MB / 423.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.1724, allocations: 0 / 423.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1724, allocations: 2.562 kB / 423.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.542e-05/0.1724, allocations: 0 / 423.4 MB, free: 15.52 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.009097/0.1815, allocations: 5.8 MB / 429.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.1816, allocations: 9.875 kB / 429.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005294/0.1821, allocations: 0.6297 MB / 429.8 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003745/0.1859, allocations: 1.952 MB / 431.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.1876, allocations: 1.504 MB / 433.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.559e-05/0.1877, allocations: 190.5 kB / 433.4 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003306/0.1881, allocations: 246.9 kB / 433.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007261/0.1953, allocations: 9.295 MB / 443 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/0.1954, allocations: 32.98 kB / 443 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/0.1956, allocations: 117.8 kB / 443.1 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001491/0.1971, allocations: 2.077 MB / 445.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008398/0.2055, allocations: 8.179 MB / 453.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02349/0.229, allocations: 28.46 MB / 481.8 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004747/0.2337, allocations: 2.595 MB / 484.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.2348, allocations: 1.029 MB / 485.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004123/0.239, allocations: 3.472 MB / 488.9 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.239, allocations: 47.88 kB / 489 MB, free: 7.004 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 4.008e-06/0.239, allocations: 1.875 kB / 489 MB, free: 7.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01288/0.2519, allocations: 8.367 MB / 497.3 MB, free: 14.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.2519, allocations: 73.41 kB / 497.4 MB, free: 14.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.2551, allocations: 3.209 MB / 0.4889 GB, free: 11.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.971e-05/0.2552, allocations: 57.7 kB / 0.4889 GB, free: 11.31 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.2562, allocations: 2.506 MB / 0.4914 GB, free: 8.812 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004387/0.2566, allocations: 0.864 MB / 0.4922 GB, free: 7.961 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008921/0.2575, allocations: 0.9776 MB / 0.4932 GB, free: 6.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.2576, allocations: 308 kB / 0.4935 GB, free: 6.672 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001861/0.2594, allocations: 1.626 MB / 0.4951 GB, free: 5.039 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002845/0.2623, allocations: 4.244 MB / 0.4992 GB, free: 15.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00539/0.2677, allocations: 6.38 MB / 0.5054 GB, free: 7.965 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-05/0.2677, allocations: 24 kB / 0.5055 GB, free: 7.941 MB / 410.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.006454/0.2741, allocations: 6.465 MB / 0.5118 GB, free: 1.469 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.269e-05/0.2742, allocations: 44 kB / 0.5118 GB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-05/0.2742, allocations: 91.94 kB / 0.5119 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.2755, allocations: 0.6916 MB / 0.5126 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.2772, allocations: 1.057 MB / 0.5136 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009366/0.2865, allocations: 12.96 MB / 0.5263 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/0.2888, allocations: 264 kB / 0.5265 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/0.2891, allocations: 292 kB / 0.5268 GB, free: 1.496 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002336/0.2914, allocations: 1.796 MB / 0.5286 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.2917, allocations: 302 kB / 0.5289 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.295, allocations: 3.085 MB / 0.5319 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.529e-05/0.295, allocations: 37.94 kB / 0.5319 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.295, allocations: 8 kB / 0.5319 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.295, allocations: 11.95 kB / 0.5319 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008478/0.3035, allocations: 7.822 MB / 0.5396 GB, free: 4.277 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.3035, allocations: 4 kB / 0.5396 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006032/0.3041, allocations: 291.6 kB / 0.5398 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007434/0.3049, allocations: 0.5336 MB / 0.5404 GB, free: 3.445 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.278e-05/0.305, allocations: 40 kB / 0.5404 GB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007331/0.3123, allocations: 11.15 MB / 0.5513 GB, free: 7.703 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3123, allocations: 15.81 kB / 0.5513 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/0.3168, allocations: 4.656 MB / 0.5559 GB, free: 2.953 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/0.3173, allocations: 290.1 kB / 0.5561 GB, free: 2.668 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.3175, allocations: 36 kB / 0.5562 GB, free: 2.633 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005754/0.3181, allocations: 107.9 kB / 0.5563 GB, free: 2.527 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.3183, allocations: 149.6 kB / 0.5564 GB, free: 2.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.233e-05/0.3183, allocations: 69.86 kB / 0.5565 GB, free: 2.312 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001997/0.3203, allocations: 1.941 MB / 0.5584 GB, free: 376 kB / 458.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3203, allocations: 0 / 0.5584 GB, free: 376 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.002865/0.3232, allocations: 0.8945 MB / 0.5592 GB, free: 15.47 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004743/0.3279, allocations: 5.325 MB / 0.5644 GB, free: 10.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004579/0.3325, allocations: 4.57 MB / 0.5689 GB, free: 5.453 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3325, allocations: 0 / 0.5689 GB, free: 5.453 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.334, allocations: 1.877 MB / 0.5707 GB, free: 3.516 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.3353, allocations: 477.5 kB / 0.5712 GB, free: 3.059 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1725/0.5078, allocations: 35.21 MB / 0.6056 GB, free: 138.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/0.5098, allocations: 2.386 MB / 0.6079 GB, free: 137.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001719/0.5115, allocations: 1.379 MB / 0.6093 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.5126, allocations: 1.621 MB / 0.6108 GB, free: 134.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.223e-06/0.5126, allocations: 0 / 0.6108 GB, free: 134.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06229/0.5749, allocations: 62.51 MB / 0.6719 GB, free: 72.82 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.43, allocations: 11.81 kB / 0.6719 GB, free: 72.81 MB / 474.7 MB " [Timeout remaining time 648] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.201945157721639] Failed to read output from testmodel.py, exit status != 0: 11.551717069000006 11.557990937 11.384236733 Calling exit ...