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.001421/0.001421, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001726/0.001726, allocations: 213.7 kB / 22.24 MB, free: 5.262 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.541/1.541, allocations: 230.6 MB / 256 MB, free: 7.793 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.04837/0.04837, allocations: 9.238 MB / 321.7 MB, free: 9.82 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.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: 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.002106/0.002106, allocations: 67.89 kB / 447.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1069, allocations: 55.46 MB / 0.4913 GB, free: 6.988 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.0124/0.1193, allocations: 9.171 MB / 0.5003 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007606/0.1269, allocations: 2.87 MB / 0.5031 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.1289, allocations: 51.81 kB / 0.5031 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.1305, allocations: 468.7 kB / 0.5036 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004969/0.1355, allocations: 1.638 MB / 0.5052 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008329/0.1363, allocations: 215.6 kB / 0.5054 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004504/0.1408, allocations: 2.993 MB / 0.5083 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.1426, allocations: 0.968 MB / 0.5093 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.1445, allocations: 1.124 MB / 0.5104 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002999/0.1475, allocations: 1.584 MB / 0.5119 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009/0.1484, allocations: 276 kB / 0.5122 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002084/0.1505, allocations: 0.8075 MB / 0.513 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2349/0.3854, allocations: 1.416 MB / 0.5143 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001758/0.3871, allocations: 1.322 MB / 0.5156 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006354/0.3935, allocations: 5.712 MB / 0.5212 GB, free: 9.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3935, allocations: 0 / 0.5212 GB, free: 9.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3935, allocations: 3.938 kB / 0.5212 GB, free: 9.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001518/0.3936, allocations: 1.156 kB / 0.5212 GB, free: 9.062 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01499/0.4086, allocations: 5.804 MB / 0.5269 GB, free: 7.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4087, allocations: 8.312 kB / 0.5269 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00113/0.4098, allocations: 0.6277 MB / 0.5275 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006794/0.4166, allocations: 1.86 MB / 0.5293 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003988/0.4206, allocations: 1.537 MB / 0.5308 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.4208, allocations: 186.8 kB / 0.531 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000812/0.4216, allocations: 246.9 kB / 0.5312 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.4371, allocations: 9.305 MB / 0.5403 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.4372, allocations: 29.92 kB / 0.5404 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003915/0.4376, allocations: 114.2 kB / 0.5405 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003135/0.4408, allocations: 2.076 MB / 0.5425 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01712/0.4579, allocations: 8.232 MB / 0.5505 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04942/0.5073, allocations: 28.44 MB / 0.5783 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007796/0.5151, allocations: 2.46 MB / 0.5807 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.5171, allocations: 1.034 MB / 0.5817 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009234/0.5263, allocations: 3.447 MB / 0.5851 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.043e-05/0.5264, allocations: 43.88 kB / 0.5851 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.709e-06/0.5264, allocations: 6.625 kB / 0.5851 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02344/0.5498, allocations: 8.112 MB / 0.5931 GB, free: 4.137 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.5499, allocations: 73.41 kB / 0.5931 GB, free: 4.051 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/0.5554, allocations: 3.232 MB / 0.5963 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004268/0.5558, allocations: 64.44 kB / 0.5963 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002517/0.5584, allocations: 2.526 MB / 0.5988 GB, free: 14.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/0.5598, allocations: 0.8829 MB / 0.5997 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/0.5615, allocations: 0.9892 MB / 0.6006 GB, free: 12.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5616, allocations: 304.9 kB / 0.6009 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/0.5644, allocations: 1.641 MB / 0.6025 GB, free: 10.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004979/0.5694, allocations: 4.25 MB / 0.6067 GB, free: 4.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008864/0.5782, allocations: 6.397 MB / 0.6129 GB, free: 13.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-05/0.5783, allocations: 28 kB / 0.613 GB, free: 13.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01353/0.5919, allocations: 6.464 MB / 0.6193 GB, free: 7.277 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.121e-05/0.592, allocations: 44 kB / 0.6193 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.5921, allocations: 98.12 kB / 0.6194 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001991/0.5941, allocations: 0.7317 MB / 0.6201 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00371/0.5978, allocations: 1.045 MB / 0.6211 GB, free: 5.352 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.614, allocations: 12.99 MB / 0.6338 GB, free: 7.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003746/0.6177, allocations: 262.9 kB / 0.6341 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007944/0.6185, allocations: 288 kB / 0.6344 GB, free: 7.273 MB / 478.1 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.003443/0.622, allocations: 1.791 MB / 0.6361 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005787/0.6225, allocations: 298 kB / 0.6364 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005991/0.6285, allocations: 3.119 MB / 0.6394 GB, free: 2.031 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/0.6287, allocations: 31.98 kB / 0.6395 GB, free: 2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.6287, allocations: 8 kB / 0.6395 GB, free: 1.992 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.6287, allocations: 7.969 kB / 0.6395 GB, free: 1.984 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/0.6459, allocations: 7.805 MB / 0.6471 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.344e-05/0.6459, allocations: 4 kB / 0.6471 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.6471, allocations: 297.3 kB / 0.6474 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00162/0.6487, allocations: 0.5806 MB / 0.648 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.6489, allocations: 43.94 kB / 0.648 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/0.6619, allocations: 11.22 MB / 0.6589 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.6619, allocations: 8 kB / 0.659 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008067/0.67, allocations: 4.681 MB / 0.6635 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.671, allocations: 286 kB / 0.6638 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004303/0.6714, allocations: 47.98 kB / 0.6638 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.6725, allocations: 95.83 kB / 0.6639 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.6729, allocations: 153.7 kB / 0.6641 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/0.673, allocations: 67.11 kB / 0.6641 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003562/0.6766, allocations: 1.976 MB / 0.6661 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6766, allocations: 0 / 0.6661 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004896/0.6815, allocations: 0.8943 MB / 0.667 GB, free: 5.094 MB / 0.4981 GB 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.008724/0.6902, allocations: 5.352 MB / 0.6722 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00875/0.6989, allocations: 4.588 MB / 0.6767 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.6989, allocations: 0 / 0.6767 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003123/0.7021, allocations: 1.892 MB / 0.6785 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/0.7049, allocations: 482.4 kB / 0.679 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06647/0.7714, allocations: 35.51 MB / 0.7136 GB, free: 1.348 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2644/1.036, allocations: 2.366 MB / 0.716 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003835/1.04, allocations: 1.376 MB / 0.7173 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0023/1.042, allocations: 1.629 MB / 0.7189 GB, free: 183.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.41e-07/1.042, allocations: 1.312 kB / 0.7189 GB, free: 183.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/1.167, allocations: 62.55 MB / 0.78 GB, free: 141.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/18.25, allocations: 15.81 kB / 0.78 GB, free: 141.6 MB / 0.545 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.05160689773038] Failed to read output from testmodel.py, exit status != 0: 18.42146327905357 18.443730716 18.045919665 Calling exit ...