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.001467/0.001467, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00174/0.00174, allocations: 192.1 kB / 16.13 MB, free: 6.66 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.289/1.289, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1604/0.1604, allocations: 9.09 MB / 299 MB, free: 1.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/0.09056, allocations: 51.44 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.1801/0.2707, allocations: 44.18 MB / 457 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01772/0.2884, allocations: 9.25 MB / 466.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008421/0.2969, allocations: 167.1 kB / 466.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.2981, allocations: 373 kB / 466.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00305/0.3012, allocations: 1.466 MB / 468.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.3017, allocations: 196.8 kB / 468.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002853/0.3045, allocations: 4.07 MB / 472.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.3056, allocations: 1.068 MB / 473.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008599/0.3065, allocations: 0.9502 MB / 474.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.3078, allocations: 1.557 MB / 476 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003218/0.3081, allocations: 168.4 kB / 476.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.3094, allocations: 0.8166 MB / 477 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009625/0.3104, allocations: 1.304 MB / 478.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.3116, allocations: 1.77 MB / 480.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004422/0.316, allocations: 5.266 MB / 485.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.316, allocations: 0 / 485.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.316, allocations: 0 / 485.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001056/0.3161, allocations: 0 / 485.4 MB, free: 2.863 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.01433/0.3305, allocations: 5.749 MB / 491.1 MB, free: 488 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.3305, allocations: 9.656 kB / 491.1 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009653/0.3315, allocations: 0.6315 MB / 491.7 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006864/0.3384, allocations: 1.833 MB / 493.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002974/0.3414, allocations: 1.569 MB / 495.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.3415, allocations: 193.6 kB / 495.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004777/0.342, allocations: 243.6 kB / 495.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.3566, allocations: 9.313 MB / 0.4931 GB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.481e-05/0.3567, allocations: 19.81 kB / 0.4931 GB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003561/0.3571, allocations: 119.8 kB / 0.4932 GB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003102/0.3602, allocations: 2.076 MB / 0.4952 GB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.3754, allocations: 8.245 MB / 0.5033 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03508/0.4105, allocations: 30.01 MB / 0.5326 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007265/0.4178, allocations: 3.042 MB / 0.5355 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.4195, allocations: 1.112 MB / 0.5366 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007486/0.427, allocations: 6.285 MB / 0.5428 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.427, allocations: 59.88 kB / 0.5428 GB, free: 3.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.627e-06/0.427, allocations: 0 / 0.5428 GB, free: 3.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02196/0.449, allocations: 8.279 MB / 0.5509 GB, free: 11.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.4491, allocations: 77.34 kB / 0.551 GB, free: 11.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004279/0.4534, allocations: 3.085 MB / 0.554 GB, free: 8.273 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002452/0.4536, allocations: 57.7 kB / 0.5541 GB, free: 8.211 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.4551, allocations: 2.424 MB / 0.5564 GB, free: 5.754 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007093/0.4558, allocations: 0.8479 MB / 0.5572 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.457, allocations: 0.9807 MB / 0.5582 GB, free: 3.902 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.4571, allocations: 301.1 kB / 0.5585 GB, free: 3.605 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/0.4595, allocations: 1.638 MB / 0.5601 GB, free: 1.961 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004/0.4635, allocations: 4.252 MB / 0.5642 GB, free: 12.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007135/0.4707, allocations: 6.381 MB / 0.5705 GB, free: 4.773 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.256e-05/0.4708, allocations: 24 kB / 0.5705 GB, free: 4.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.1697/0.6405, allocations: 6.478 MB / 0.5768 GB, free: 123.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.827e-05/0.6405, allocations: 45.34 kB / 0.5769 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.18e-05/0.6406, allocations: 89.88 kB / 0.577 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.6423, allocations: 0.7299 MB / 0.5777 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002941/0.6453, allocations: 1.054 MB / 0.5787 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.6556, allocations: 12.43 MB / 0.5908 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.6589, allocations: 259.2 kB / 0.5911 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003666/0.6593, allocations: 291 kB / 0.5914 GB, free: 115.6 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 (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.002333/0.6616, allocations: 1.793 MB / 0.5931 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003546/0.662, allocations: 284.4 kB / 0.5934 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.6664, allocations: 3.132 MB / 0.5964 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.79e-05/0.6665, allocations: 33.95 kB / 0.5965 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.6666, allocations: 8.875 kB / 0.5965 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.6666, allocations: 10.17 kB / 0.5965 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.6775, allocations: 8.318 MB / 0.6046 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.6775, allocations: 7.688 kB / 0.6046 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6786, allocations: 297.5 kB / 0.6049 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.68, allocations: 0.5799 MB / 0.6055 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.6801, allocations: 47.41 kB / 0.6055 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00878/0.6889, allocations: 10.74 MB / 0.616 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.6889, allocations: 7.906 kB / 0.616 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007117/0.696, allocations: 4.688 MB / 0.6206 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007827/0.6969, allocations: 361.7 kB / 0.6209 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003345/0.6972, allocations: 43.12 kB / 0.621 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.6982, allocations: 98.31 kB / 0.6211 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/0.6985, allocations: 153.6 kB / 0.6212 GB, free: 99.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.6987, allocations: 61.98 kB / 0.6213 GB, free: 99.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002637/0.7013, allocations: 1.97 MB / 0.6232 GB, free: 99.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7013, allocations: 1.062 kB / 0.6232 GB, free: 99.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003883/0.7052, allocations: 0.9068 MB / 0.6241 GB, free: 99.14 MB / 446.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.006649/0.7119, allocations: 5.353 MB / 0.6293 GB, free: 96.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006013/0.7179, allocations: 4.708 MB / 0.6339 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.7179, allocations: 4.188 kB / 0.6339 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.7201, allocations: 1.978 MB / 0.6359 GB, free: 93.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.7225, allocations: 450.4 kB / 0.6363 GB, free: 93.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0456/0.7681, allocations: 41.3 MB / 0.6766 GB, free: 51.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002256/0.7704, allocations: 2.921 MB / 0.6795 GB, free: 48.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002808/0.7732, allocations: 1.378 MB / 0.6808 GB, free: 47.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.7747, allocations: 1.638 MB / 0.6824 GB, free: 45.58 MB / 446.1 MB Notification: Performance of SimCode: time 4.1e-07/0.7747, allocations: 0 / 0.6824 GB, free: 45.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2365/1.011, allocations: 63.18 MB / 0.7441 GB, free: 126 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001322/1.011, allocations: 219.2 kB / 0.7443 GB, free: 125.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.201/4.212, allocations: 0.625 kB / 0.7443 GB, free: 125.7 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)