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.001861/0.001861, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002372/0.002372, allocations: 220.5 kB / 23.03 MB, free: 4.945 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.0509/0.0509, allocations: 9.249 MB / 322.5 MB, free: 9.852 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="cs",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.002276/0.002276, allocations: 67.89 kB / 448.4 MB, free: 14.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1102, allocations: 55.47 MB / 0.4921 GB, free: 7.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01189/0.1221, allocations: 9.104 MB / 0.501 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00649/0.1286, allocations: 2.881 MB / 0.5038 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.1302, allocations: 55.81 kB / 0.5039 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1318, allocations: 460.8 kB / 0.5043 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004764/0.1366, allocations: 1.63 MB / 0.5059 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008739/0.1375, allocations: 223.6 kB / 0.5061 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004512/0.142, allocations: 2.992 MB / 0.509 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.1438, allocations: 0.9836 MB / 0.51 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.1458, allocations: 1.117 MB / 0.5111 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.1487, allocations: 1.681 MB / 0.5127 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00087/0.1496, allocations: 276 kB / 0.513 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001956/0.1516, allocations: 0.8153 MB / 0.5138 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2416/0.3932, allocations: 1.414 MB / 0.5152 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.3951, allocations: 1.311 MB / 0.5164 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00777/0.4028, allocations: 5.72 MB / 0.522 GB, free: 9.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4028, allocations: 0.9062 kB / 0.522 GB, free: 9.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4028, allocations: 0.5156 kB / 0.522 GB, free: 9.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002368/0.4031, allocations: 0.5312 kB / 0.522 GB, free: 9.074 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.01872/0.4218, allocations: 5.807 MB / 0.5277 GB, free: 7.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.4219, allocations: 10.12 kB / 0.5277 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001984/0.4221, allocations: 87.08 kB / 0.5278 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001472/0.4235, allocations: 0.628 MB / 0.5284 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007349/0.4309, allocations: 1.86 MB / 0.5302 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/0.4354, allocations: 1.528 MB / 0.5317 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.4356, allocations: 197.5 kB / 0.5319 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/0.4369, allocations: 244.2 kB / 0.5321 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01974/0.4566, allocations: 9.308 MB / 0.5412 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001674/0.4568, allocations: 32.17 kB / 0.5413 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005393/0.4573, allocations: 118 kB / 0.5414 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003441/0.4608, allocations: 2.077 MB / 0.5434 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0176/0.4784, allocations: 8.239 MB / 0.5514 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04794/0.5263, allocations: 28.44 MB / 0.5792 GB, free: 3.199 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007942/0.5343, allocations: 2.472 MB / 0.5816 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001923/0.5362, allocations: 1.032 MB / 0.5826 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007942/0.5441, allocations: 3.446 MB / 0.586 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.5442, allocations: 51.06 kB / 0.5861 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.12e-06/0.5442, allocations: 0 / 0.5861 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02392/0.5681, allocations: 8.117 MB / 0.594 GB, free: 4.145 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.5682, allocations: 77.41 kB / 0.5941 GB, free: 4.055 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004852/0.573, allocations: 3.082 MB / 0.5971 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.5733, allocations: 57.7 kB / 0.5971 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001962/0.5752, allocations: 2.527 MB / 0.5996 GB, free: 14.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008689/0.5761, allocations: 0.8792 MB / 0.6004 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/0.5776, allocations: 0.9815 MB / 0.6014 GB, free: 12.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5777, allocations: 313.1 kB / 0.6017 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.5805, allocations: 1.638 MB / 0.6033 GB, free: 10.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005044/0.5855, allocations: 4.252 MB / 0.6075 GB, free: 5.074 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008378/0.5939, allocations: 6.387 MB / 0.6137 GB, free: 13.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-05/0.594, allocations: 28 kB / 0.6137 GB, free: 13.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.0127/0.6067, allocations: 6.47 MB / 0.62 GB, free: 7.438 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.004e-05/0.6068, allocations: 44 kB / 0.6201 GB, free: 7.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000139/0.6069, allocations: 93.41 kB / 0.6202 GB, free: 7.305 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/0.6089, allocations: 0.7266 MB / 0.6209 GB, free: 6.566 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.6125, allocations: 1.049 MB / 0.6219 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/0.6284, allocations: 13 MB / 0.6346 GB, free: 7.969 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/0.6321, allocations: 263.9 kB / 0.6349 GB, free: 7.711 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006976/0.6328, allocations: 292 kB / 0.6351 GB, free: 7.426 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.003831/0.6366, allocations: 1.791 MB / 0.6369 GB, free: 5.625 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/0.6374, allocations: 298 kB / 0.6372 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005949/0.6434, allocations: 3.112 MB / 0.6402 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001114/0.6435, allocations: 31.98 kB / 0.6402 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.6435, allocations: 8 kB / 0.6402 GB, free: 2.152 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/0.6435, allocations: 12.52 kB / 0.6403 GB, free: 2.141 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.6588, allocations: 7.809 MB / 0.6479 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.6588, allocations: 4.375 kB / 0.6479 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.66, allocations: 299.6 kB / 0.6482 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.6617, allocations: 0.5663 MB / 0.6487 GB, free: 9.348 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.6618, allocations: 47.92 kB / 0.6488 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/0.6745, allocations: 11.22 MB / 0.6597 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.6745, allocations: 7.938 kB / 0.6597 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00774/0.6822, allocations: 4.684 MB / 0.6643 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009548/0.6832, allocations: 294 kB / 0.6646 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004587/0.6837, allocations: 36 kB / 0.6646 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.6848, allocations: 95.89 kB / 0.6647 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/0.6851, allocations: 153.6 kB / 0.6649 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.6852, allocations: 71.98 kB / 0.6649 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003361/0.6886, allocations: 1.969 MB / 0.6668 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6886, allocations: 288 / 0.6668 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004546/0.6931, allocations: 0.8905 MB / 0.6677 GB, free: 5.262 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.008364/0.7015, allocations: 5.364 MB / 0.673 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008133/0.7096, allocations: 4.587 MB / 0.6774 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.7096, allocations: 0 / 0.6774 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/0.7129, allocations: 1.899 MB / 0.6793 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.7157, allocations: 481.3 kB / 0.6797 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06772/0.7834, allocations: 35.49 MB / 0.7144 GB, free: 1.504 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.227/1.01, allocations: 2.371 MB / 0.7167 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003451/1.014, allocations: 1.382 MB / 0.7181 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002143/1.016, allocations: 1.626 MB / 0.7197 GB, free: 183.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.61e-07/1.016, allocations: 0 / 0.7197 GB, free: 183.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1834/1.199, allocations: 64.41 MB / 0.7826 GB, free: 139.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/23.18, allocations: 7.031 kB / 0.7826 GB, free: 139.9 MB / 0.545 GB " [Timeout remaining time 637] (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: 26.01410991209559] Failed to read output from testmodel.py, exit status != 0: 23.403264619992115 23.413312081 23.007913163 Calling exit ...