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.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.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.001988/0.001988, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002546/0.002547, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1628/0.1628, allocations: 9.104 MB / 299.5 MB, free: 1.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 71.88 kB / 362.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 51.43 MB / 413.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2272/0.3412, allocations: 10.48 MB / 424 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007213/0.3485, allocations: 2.976 MB / 426.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.3499, allocations: 43.38 kB / 427 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3511, allocations: 450.4 kB / 427.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003619/0.3548, allocations: 1.579 MB / 429 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.3554, allocations: 213.8 kB / 429.2 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00288/0.3583, allocations: 3.007 MB / 432.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.3597, allocations: 1.177 MB / 433.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.3609, allocations: 1.096 MB / 434.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.363, allocations: 1.536 MB / 436 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000551/0.3635, allocations: 276.8 kB / 436.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.3654, allocations: 0.8784 MB / 437.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001/0.3664, allocations: 1.413 MB / 438.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.3677, allocations: 1.858 MB / 440.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004534/0.3722, allocations: 5.436 MB / 445.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3722, allocations: 0 / 445.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3722, allocations: 0 / 445.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001213/0.3724, allocations: 0 / 445.9 MB, free: 29.62 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.01296/0.3853, allocations: 5.737 MB / 451.6 MB, free: 27.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3854, allocations: 13.5 kB / 451.6 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001247/0.3867, allocations: 0.6303 MB / 452.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006695/0.3934, allocations: 1.835 MB / 454.1 MB, free: 26.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003352/0.3968, allocations: 1.568 MB / 455.7 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.3969, allocations: 191 kB / 455.8 MB, free: 25.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008774/0.3978, allocations: 249 kB / 456.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.4153, allocations: 9.298 MB / 465.4 MB, free: 21.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.662e-05/0.4154, allocations: 36.19 kB / 465.4 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.4158, allocations: 120.1 kB / 465.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004529/0.4203, allocations: 2.067 MB / 467.6 MB, free: 21.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01944/0.4398, allocations: 8.245 MB / 475.9 MB, free: 18.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04165/0.4815, allocations: 30.03 MB / 0.494 GB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007455/0.489, allocations: 3.037 MB / 0.497 GB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4907, allocations: 1.12 MB / 0.4981 GB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007862/0.4986, allocations: 6.281 MB / 0.5042 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.4986, allocations: 47.86 kB / 0.5043 GB, free: 11.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.338e-06/0.4986, allocations: 4 kB / 0.5043 GB, free: 11.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.02319/0.5218, allocations: 8.283 MB / 0.5124 GB, free: 2.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.5219, allocations: 77.34 kB / 0.5124 GB, free: 2.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/0.5281, allocations: 3.077 MB / 0.5154 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003818/0.5285, allocations: 64.59 kB / 0.5155 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002436/0.531, allocations: 2.42 MB / 0.5179 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001236/0.5323, allocations: 0.8386 MB / 0.5187 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/0.5337, allocations: 0.9878 MB / 0.5196 GB, free: 11.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.5338, allocations: 305.1 kB / 0.5199 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.5365, allocations: 1.63 MB / 0.5215 GB, free: 9.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004799/0.5414, allocations: 4.256 MB / 0.5257 GB, free: 3.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008296/0.5497, allocations: 6.392 MB / 0.5319 GB, free: 12.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.897e-05/0.5498, allocations: 28 kB / 0.532 GB, free: 12.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01119/0.561, allocations: 6.475 MB / 0.5383 GB, free: 5.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.432e-05/0.5611, allocations: 47.19 kB / 0.5383 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.5612, allocations: 92 kB / 0.5384 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001852/0.5631, allocations: 0.7259 MB / 0.5391 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/0.5662, allocations: 1.057 MB / 0.5402 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.58, allocations: 13.6 MB / 0.5534 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003435/0.5834, allocations: 263.9 kB / 0.5537 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004706/0.5839, allocations: 288 kB / 0.554 GB, free: 4.992 MB / 430.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.002953/0.5869, allocations: 1.783 MB / 0.5557 GB, free: 3.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004775/0.5874, allocations: 292.3 kB / 0.556 GB, free: 2.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005464/0.5929, allocations: 3.132 MB / 0.559 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/0.593, allocations: 31.98 kB / 0.5591 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.593, allocations: 12 kB / 0.5591 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.593, allocations: 11.91 kB / 0.5591 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/0.6097, allocations: 8.311 MB / 0.5672 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.6097, allocations: 7.938 kB / 0.5672 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.6108, allocations: 308 kB / 0.5675 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.6124, allocations: 0.5684 MB / 0.5681 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/0.6125, allocations: 40 kB / 0.5681 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01148/0.624, allocations: 11.82 MB / 0.5796 GB, free: 9.836 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.6241, allocations: 4 kB / 0.5797 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007381/0.6314, allocations: 4.686 MB / 0.5842 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.6326, allocations: 353.6 kB / 0.5846 GB, free: 4.699 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003946/0.633, allocations: 51.05 kB / 0.5846 GB, free: 4.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6341, allocations: 95.88 kB / 0.5847 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003636/0.6345, allocations: 149.7 kB / 0.5848 GB, free: 4.414 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.6346, allocations: 63.98 kB / 0.5849 GB, free: 4.352 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003227/0.6379, allocations: 1.969 MB / 0.5868 GB, free: 2.379 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6379, allocations: 0 / 0.5868 GB, free: 2.379 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005545/0.6434, allocations: 0.9122 MB / 0.5877 GB, free: 1.469 MB / 462.1 MB 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.2011/0.8446, allocations: 5.351 MB / 0.5929 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/0.8557, allocations: 7.152 MB / 0.5999 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.8558, allocations: 3.906 kB / 0.5999 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.858, allocations: 1.982 MB / 0.6019 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.8602, allocations: 473.4 kB / 0.6023 GB, free: 131.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05533/0.9155, allocations: 39.52 MB / 0.6409 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003657/0.9192, allocations: 2.938 MB / 0.6438 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003268/0.9225, allocations: 1.37 MB / 0.6451 GB, free: 102.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002075/0.9246, allocations: 1.627 MB / 0.6467 GB, free: 100.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.9246, allocations: 0 / 0.6467 GB, free: 100.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/1.031, allocations: 64.63 MB / 0.7098 GB, free: 46.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.34, allocations: 10.59 kB / 0.7098 GB, free: 46.75 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/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)