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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007268/0.007267, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 195.9 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04695/0.04695, allocations: 9.127 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 71.88 kB / 414.2 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.0886, allocations: 51.43 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01043/0.09907, allocations: 8.634 MB / 474.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005536/0.1046, allocations: 2.612 MB / 476.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1058, allocations: 35.94 kB / 476.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009148/0.1068, allocations: 357.6 kB / 477.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003275/0.1101, allocations: 1.404 MB / 478.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.1105, allocations: 147.8 kB / 478.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002951/0.1134, allocations: 2.525 MB / 481.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.1145, allocations: 0.9348 MB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009497/0.1155, allocations: 0.8988 MB / 483.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001562/0.1171, allocations: 1.319 MB / 484.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003327/0.1174, allocations: 232 kB / 484.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001405/0.1188, allocations: 0.8347 MB / 485.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001096/0.1199, allocations: 1.219 MB / 486.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.1214, allocations: 1.569 MB / 488.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005483/0.1269, allocations: 5.011 MB / 493.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1269, allocations: 0 / 493.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1269, allocations: 0 / 493.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.127, allocations: 0 / 493.3 MB, free: 6.301 MB / 366.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.008689/0.1357, allocations: 3.961 MB / 497.3 MB, free: 2.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1358, allocations: 15.97 kB / 497.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006715/0.1365, allocations: 0.5387 MB / 497.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/0.1431, allocations: 1.789 MB / 499.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.1456, allocations: 1.375 MB / 0.4892 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.1457, allocations: 148 kB / 0.4894 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004037/0.1461, allocations: 203.8 kB / 0.4896 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.158, allocations: 7.967 MB / 0.4974 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.512e-05/0.1582, allocations: 23.81 kB / 0.4974 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002852/0.1584, allocations: 87.88 kB / 0.4975 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/0.1615, allocations: 1.848 MB / 0.4993 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2107/0.3723, allocations: 7.158 MB / 0.5063 GB, free: 38.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03095/0.4032, allocations: 24.13 MB / 0.5298 GB, free: 23.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004528/0.4078, allocations: 2.367 MB / 0.5321 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.4089, allocations: 0.8292 MB / 0.5329 GB, free: 21.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005557/0.4145, allocations: 4.752 MB / 0.5376 GB, free: 17.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.4145, allocations: 43.44 kB / 0.5376 GB, free: 17.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.567e-06/0.4145, allocations: 0 / 0.5376 GB, free: 17.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01217/0.4267, allocations: 7.104 MB / 0.5446 GB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.4268, allocations: 68.72 kB / 0.5446 GB, free: 13.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002611/0.4294, allocations: 2.63 MB / 0.5472 GB, free: 10.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.621e-05/0.4295, allocations: 49.7 kB / 0.5472 GB, free: 10.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000754/0.4302, allocations: 2.16 MB / 0.5494 GB, free: 8.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.4305, allocations: 0.6039 MB / 0.5499 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007484/0.4313, allocations: 0.7876 MB / 0.5507 GB, free: 6.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.939e-05/0.4313, allocations: 309.1 kB / 0.551 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.433, allocations: 1.308 MB / 0.5523 GB, free: 5.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/0.4353, allocations: 3.433 MB / 0.5556 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006157/0.4415, allocations: 5.087 MB / 0.5606 GB, free: 10.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.512e-05/0.4415, allocations: 24 kB / 0.5606 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007985/0.4495, allocations: 4.819 MB / 0.5653 GB, free: 5.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/0.4496, allocations: 36 kB / 0.5654 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-05/0.4497, allocations: 76.84 kB / 0.5654 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.4502, allocations: 201.4 kB / 0.5656 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.4529, allocations: 0.9046 MB / 0.5665 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002342/0.4553, allocations: 2.33 MB / 0.5688 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.4576, allocations: 215.7 kB / 0.569 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/0.4579, allocations: 228 kB / 0.5692 GB, free: 1.574 MB / 398.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.002163/0.4601, allocations: 1.558 MB / 0.5707 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/0.4605, allocations: 230.6 kB / 0.571 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003434/0.4639, allocations: 1.95 MB / 0.5729 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/0.464, allocations: 27.98 kB / 0.5729 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.464, allocations: 0 / 0.5729 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4641, allocations: 7.984 kB / 0.5729 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009406/0.4735, allocations: 5.59 MB / 0.5784 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4735, allocations: 0 / 0.5784 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009818/0.4745, allocations: 235.7 kB / 0.5786 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000304/0.4748, allocations: 100.7 kB / 0.5787 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.12e-05/0.4749, allocations: 24.31 kB / 0.5787 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002026/0.4769, allocations: 2.077 MB / 0.5807 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4769, allocations: 3.938 kB / 0.5807 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/0.4817, allocations: 3.042 MB / 0.5837 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/0.4824, allocations: 315.5 kB / 0.584 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.4826, allocations: 20 kB / 0.584 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008019/0.4835, allocations: 75.91 kB / 0.5841 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4836, allocations: 80.83 kB / 0.5842 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-05/0.4837, allocations: 43.98 kB / 0.5842 GB, free: 1.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002531/0.4863, allocations: 1.699 MB / 0.5859 GB, free: 184 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4863, allocations: 3.938 kB / 0.5859 GB, free: 180 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002645/0.4889, allocations: 0.664 MB / 0.5865 GB, free: 15.51 MB / 430.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.005184/0.4941, allocations: 3.68 MB / 0.5901 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00557/0.4997, allocations: 3.137 MB / 0.5932 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4997, allocations: 0 / 0.5932 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.5013, allocations: 0.989 MB / 0.5941 GB, free: 7.656 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.5033, allocations: 387.5 kB / 0.5945 GB, free: 7.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04202/0.5453, allocations: 27.45 MB / 0.6213 GB, free: 9.117 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002939/0.5483, allocations: 2.562 MB / 0.6238 GB, free: 6.523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0027/0.551, allocations: 1.204 MB / 0.625 GB, free: 5.312 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/0.5528, allocations: 1.292 MB / 0.6263 GB, free: 4.02 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5528, allocations: 0 / 0.6263 GB, free: 4.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09713/0.6499, allocations: 46.21 MB / 0.6714 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/16.53, allocations: 0 / 0.6714 GB, free: 6.035 MB / 0.4981 GB (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 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)