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.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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001126/0.001126, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1456/0.1456, allocations: 9.1 MB / 300.1 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003002, allocations: 8 kB / 363.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1036, allocations: 52.43 MB / 415.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2005/0.3041, allocations: 37.64 MB / 453.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.3196, allocations: 9.297 MB / 462.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006323/0.326, allocations: 167.4 kB / 462.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005191/0.3312, allocations: 1.881 MB / 464.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0172/0.3484, allocations: 5.568 MB / 470.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.3502, allocations: 203.1 kB / 470.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.3527, allocations: 1.745 MB / 472 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009859/0.3537, allocations: 1.043 MB / 473.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006992/0.3544, allocations: 0.834 MB / 473.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009924/0.3554, allocations: 1.162 MB / 475 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002468/0.3557, allocations: 156.6 kB / 475.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.3568, allocations: 0.6796 MB / 475.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008649/0.3576, allocations: 1.197 MB / 477.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005404/0.3582, allocations: 0.7416 MB / 477.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003751/0.3619, allocations: 4.168 MB / 482 MB, free: 7.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.362, allocations: 0 / 482 MB, free: 7.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.362, allocations: 0 / 482 MB, free: 7.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.3621, allocations: 1.156 kB / 482 MB, free: 7.055 MB / 350.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.01256/0.3746, allocations: 5.124 MB / 487.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3747, allocations: 13.25 kB / 487.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001953/0.3767, allocations: 0.6353 MB / 487.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008552/0.3852, allocations: 2.239 MB / 490 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003994/0.3892, allocations: 1.534 MB / 491.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.3894, allocations: 185.5 kB / 491.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007729/0.3902, allocations: 246 kB / 492 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.4082, allocations: 9.343 MB / 0.4895 GB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.401e-05/0.4083, allocations: 23.81 kB / 0.4896 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004015/0.4087, allocations: 119.8 kB / 0.4897 GB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003529/0.4123, allocations: 2.072 MB / 0.4917 GB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.4287, allocations: 8.276 MB / 0.4998 GB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04363/0.4724, allocations: 29.98 MB / 0.5291 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007905/0.4803, allocations: 3.024 MB / 0.532 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002607/0.483, allocations: 2.715 MB / 0.5347 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.866e-05/0.4831, allocations: 56.52 kB / 0.5347 GB, free: 14.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=205): time 5.73e-06/0.4831, allocations: 0 / 0.5347 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=259): time 0.02637/0.5095, allocations: 9.437 MB / 0.5439 GB, free: 4.422 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.5096, allocations: 73.41 kB / 0.544 GB, free: 4.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004831/0.5144, allocations: 2.972 MB / 0.5469 GB, free: 1.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003671/0.5149, allocations: 65.7 kB / 0.547 GB, free: 1.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001716/0.5166, allocations: 2.351 MB / 0.5493 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.5177, allocations: 0.9286 MB / 0.5502 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/0.518, allocations: 100 kB / 0.5503 GB, free: 13.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003327/0.5183, allocations: 0.5092 MB / 0.5508 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003156/0.5215, allocations: 1.646 MB / 0.5524 GB, free: 11.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005281/0.5268, allocations: 4.249 MB / 0.5565 GB, free: 6.164 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004025/0.5308, allocations: 2.659 MB / 0.5591 GB, free: 3.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.598e-05/0.5309, allocations: 27.94 kB / 0.5592 GB, free: 3.477 MB / 430.1 MB Notification: Performance of matching and sorting (n=667) (initialization): time 0.01185/0.5428, allocations: 6.508 MB / 0.5655 GB, free: 12.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/0.5429, allocations: 45.41 kB / 0.5655 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/0.5431, allocations: 92 kB / 0.5656 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001852/0.5449, allocations: 0.7388 MB / 0.5664 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003678/0.5486, allocations: 1.064 MB / 0.5674 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2348/0.7835, allocations: 12.65 MB / 0.5798 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/0.7873, allocations: 260 kB / 0.58 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006845/0.788, allocations: 288.2 kB / 0.5803 GB, free: 117.4 MB / 446.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 (591): * Single equations (assignments): 582 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.003119/0.7912, allocations: 1.798 MB / 0.582 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.7916, allocations: 289.5 kB / 0.5823 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005724/0.7973, allocations: 3.606 MB / 0.5858 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/0.7975, allocations: 38.27 kB / 0.5859 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/0.7975, allocations: 6.219 kB / 0.5859 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.133e-05/0.7976, allocations: 14.28 kB / 0.5859 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01772/0.8153, allocations: 9.041 MB / 0.5947 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.8154, allocations: 7.312 kB / 0.5947 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.8166, allocations: 342.8 kB / 0.595 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.8181, allocations: 0.5744 MB / 0.5956 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/0.8183, allocations: 58.53 kB / 0.5957 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008846/0.8271, allocations: 10.95 MB / 0.6064 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.8272, allocations: 13.66 kB / 0.6064 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007052/0.8342, allocations: 5.696 MB / 0.6119 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.8353, allocations: 384.2 kB / 0.6123 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003458/0.8357, allocations: 46.77 kB / 0.6123 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.8368, allocations: 103.8 kB / 0.6124 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/0.8372, allocations: 170.3 kB / 0.6126 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.8373, allocations: 74.7 kB / 0.6127 GB, free: 102.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.8405, allocations: 1.909 MB / 0.6145 GB, free: 102.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.8405, allocations: 1 kB / 0.6145 GB, free: 102.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005862/0.8464, allocations: 0.9201 MB / 0.6154 GB, free: 102 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (193): * Single equations (assignments): 184 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.008422/0.8548, allocations: 8.179 MB / 0.6234 GB, free: 96.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008575/0.8634, allocations: 4.818 MB / 0.6281 GB, free: 94.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.74e-05/0.8635, allocations: 1.219 kB / 0.6281 GB, free: 94.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/0.867, allocations: 2.081 MB / 0.6302 GB, free: 93.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/0.8699, allocations: 428.2 kB / 0.6306 GB, free: 93.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06431/0.9343, allocations: 89.03 MB / 0.7175 GB, free: 10.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00293/0.9373, allocations: 3.013 MB / 0.7205 GB, free: 8.008 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003604/0.9409, allocations: 1.441 MB / 0.7219 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/0.9428, allocations: 1.631 MB / 0.7235 GB, free: 5.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.9428, allocations: 0 / 0.7235 GB, free: 5.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3256/1.268, allocations: 68.33 MB / 0.7902 GB, free: 118.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/1.269, allocations: 205.6 kB / 0.7904 GB, free: 117.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.968/5.237, allocations: 2.297 kB / 0.7904 GB, free: 117.9 MB / 462.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) Environment - environmentSimulation: