Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.001317/0.001317, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001424/0.001424, allocations: 219.5 kB / 23.03 MB, free: 4.922 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.0506/0.0506, allocations: 9.24 MB / 322.5 MB, free: 9.848 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.002181/0.002181, allocations: 63.91 kB / 448.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1279, allocations: 55.47 MB / 0.4921 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01064/0.1386, allocations: 7.611 MB / 0.4995 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005788/0.1444, allocations: 2.523 MB / 0.502 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.1455, allocations: 35.88 kB / 0.502 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.1467, allocations: 385.4 kB / 0.5024 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003954/0.1506, allocations: 1.436 MB / 0.5038 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1512, allocations: 135.8 kB / 0.5039 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.1551, allocations: 2.514 MB / 0.5064 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.1569, allocations: 0.7789 MB / 0.5072 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.1589, allocations: 0.9183 MB / 0.508 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002471/0.1614, allocations: 1.432 MB / 0.5094 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007667/0.1621, allocations: 236 kB / 0.5097 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.1642, allocations: 0.7801 MB / 0.5104 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001618/0.1658, allocations: 1.234 MB / 0.5116 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002144/0.1679, allocations: 1.091 MB / 0.5127 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2779/0.4459, allocations: 4.991 MB / 0.5176 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4459, allocations: 0.5156 kB / 0.5176 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4459, allocations: 1.938 kB / 0.5176 GB, free: 12.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001896/0.4461, allocations: 0 / 0.5176 GB, free: 12.42 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01145/0.4575, allocations: 3.914 MB / 0.5214 GB, free: 11.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.4576, allocations: 9.812 kB / 0.5214 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001341/0.4577, allocations: 77.86 kB / 0.5215 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001018/0.4587, allocations: 0.5335 MB / 0.522 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00714/0.4659, allocations: 1.793 MB / 0.5238 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003659/0.4695, allocations: 1.321 MB / 0.525 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.4697, allocations: 148.2 kB / 0.5252 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009298/0.4706, allocations: 208.3 kB / 0.5254 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.4859, allocations: 7.966 MB / 0.5332 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/0.486, allocations: 22.08 kB / 0.5332 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006197/0.4866, allocations: 90.06 kB / 0.5333 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/0.4898, allocations: 1.847 MB / 0.5351 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01567/0.5055, allocations: 7.168 MB / 0.5421 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04047/0.5459, allocations: 22.69 MB / 0.5642 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005367/0.5513, allocations: 1.846 MB / 0.566 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.5527, allocations: 0.7747 MB / 0.5668 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007023/0.5597, allocations: 3.077 MB / 0.5698 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.5598, allocations: 45.84 kB / 0.5698 GB, free: 13.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 4.348e-06/0.5598, allocations: 0 / 0.5698 GB, free: 13.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01684/0.5766, allocations: 6.959 MB / 0.5766 GB, free: 6.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.5767, allocations: 64.72 kB / 0.5767 GB, free: 6.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/0.5811, allocations: 2.631 MB / 0.5793 GB, free: 3.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.5813, allocations: 45.7 kB / 0.5793 GB, free: 3.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001674/0.583, allocations: 2.167 MB / 0.5814 GB, free: 1.648 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006273/0.5836, allocations: 0.5964 MB / 0.582 GB, free: 1.062 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.5848, allocations: 0.785 MB / 0.5828 GB, free: 276 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.585, allocations: 301.1 kB / 0.5831 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002477/0.5874, allocations: 1.308 MB / 0.5843 GB, free: 14.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004385/0.5918, allocations: 3.435 MB / 0.5877 GB, free: 10.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007226/0.5991, allocations: 5.095 MB / 0.5927 GB, free: 4.387 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.196e-05/0.5991, allocations: 20 kB / 0.5927 GB, free: 4.367 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01183/0.611, allocations: 4.818 MB / 0.5974 GB, free: 15.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.199e-05/0.6111, allocations: 36 kB / 0.5974 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.6112, allocations: 76 kB / 0.5975 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/0.6117, allocations: 207 kB / 0.5977 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/0.6149, allocations: 0.9007 MB / 0.5986 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002572/0.6174, allocations: 2.166 MB / 0.6007 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003011/0.6204, allocations: 220 kB / 0.6009 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005159/0.621, allocations: 228 kB / 0.6011 GB, free: 11.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (478): * Single equations (assignments): 473 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003056/0.624, allocations: 1.558 MB / 0.6026 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.6245, allocations: 231 kB / 0.6029 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003609/0.6281, allocations: 1.947 MB / 0.6048 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/0.6282, allocations: 26.72 kB / 0.6048 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.6282, allocations: 4 kB / 0.6048 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.6282, allocations: 7.969 kB / 0.6048 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.6385, allocations: 5.156 MB / 0.6098 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.6385, allocations: 0 / 0.6098 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.6395, allocations: 239.8 kB / 0.6101 GB, free: 2.652 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003708/0.6399, allocations: 98.64 kB / 0.6102 GB, free: 2.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.561e-05/0.64, allocations: 24 kB / 0.6102 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/0.642, allocations: 1.904 MB / 0.612 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.642, allocations: 12 kB / 0.6121 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00517/0.6472, allocations: 3.034 MB / 0.615 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008637/0.6481, allocations: 238.5 kB / 0.6152 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003743/0.6485, allocations: 24 kB / 0.6153 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009563/0.6494, allocations: 77.25 kB / 0.6153 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/0.6496, allocations: 84.83 kB / 0.6154 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.6498, allocations: 44.06 kB / 0.6155 GB, free: 12.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003192/0.6529, allocations: 1.703 MB / 0.6171 GB, free: 11.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6529, allocations: 0 / 0.6171 GB, free: 11.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003424/0.6564, allocations: 0.6476 MB / 0.6178 GB, free: 10.61 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005985/0.6624, allocations: 3.685 MB / 0.6214 GB, free: 6.883 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005847/0.6682, allocations: 3.014 MB / 0.6243 GB, free: 3.879 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.6682, allocations: 0 / 0.6243 GB, free: 3.879 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.6698, allocations: 0.9237 MB / 0.6252 GB, free: 2.945 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.6718, allocations: 397.2 kB / 0.6256 GB, free: 2.574 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04664/0.7185, allocations: 27.51 MB / 0.6525 GB, free: 4.363 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/0.7215, allocations: 2.004 MB / 0.6544 GB, free: 2.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003316/0.7248, allocations: 1.195 MB / 0.6556 GB, free: 1.133 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002346/0.7271, allocations: 1.292 MB / 0.6568 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of SimCode: time 1.293e-06/0.7271, allocations: 3.938 kB / 0.6568 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/0.8536, allocations: 48.41 MB / 0.7041 GB, free: 15.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.15/19.01, allocations: 11.98 kB / 0.7041 GB, free: 15.95 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.113778814906254] Failed to read output from testmodel.py, exit status != 0: 19.202522924984805 19.225205285 18.774684954 Calling exit ...