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.009086/0.009086, allocations: 101.2 kB / 15.73 MB, free: 6.031 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.002219/0.002219, allocations: 198.5 kB / 16.67 MB, free: 5.969 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1648/0.1648, allocations: 9.102 MB / 299.6 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 68.36 kB / 414.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2453, allocations: 51.43 MB / 465.6 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01012/0.2554, allocations: 10.49 MB / 476.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2626, allocations: 2.978 MB / 479 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.2645, allocations: 43 kB / 479.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.2657, allocations: 445.4 kB / 479.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004685/0.2705, allocations: 1.586 MB / 481.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.2712, allocations: 215.4 kB / 481.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003818/0.2751, allocations: 3.018 MB / 484.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.2767, allocations: 1.187 MB / 485.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.2786, allocations: 1.106 MB / 486.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.2809, allocations: 1.543 MB / 488.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008296/0.2817, allocations: 281.1 kB / 488.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00207/0.2838, allocations: 0.8685 MB / 489.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.2854, allocations: 1.401 MB / 490.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002571/0.288, allocations: 1.86 MB / 492.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007229/0.2952, allocations: 5.718 MB / 498.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2953, allocations: 0 / 498.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2953, allocations: 0 / 498.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001722/0.2955, allocations: 0 / 498.3 MB, free: 11.29 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01539/0.3109, allocations: 5.737 MB / 0.4922 GB, free: 5.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.3109, allocations: 8.031 kB / 0.4922 GB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001818/0.3128, allocations: 0.6301 MB / 0.4928 GB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007132/0.3199, allocations: 1.84 MB / 0.4946 GB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/0.3236, allocations: 1.576 MB / 0.4962 GB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.3239, allocations: 188.6 kB / 0.4963 GB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.3252, allocations: 239.8 kB / 0.4966 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01752/0.3427, allocations: 9.311 MB / 0.5057 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.3429, allocations: 39.64 kB / 0.5057 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007296/0.3436, allocations: 115.8 kB / 0.5058 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003207/0.3468, allocations: 2.072 MB / 0.5078 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.3635, allocations: 8.249 MB / 0.5159 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04352/0.4071, allocations: 29.93 MB / 0.5451 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007536/0.4147, allocations: 3.032 MB / 0.5481 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/0.4167, allocations: 1.116 MB / 0.5492 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008536/0.4252, allocations: 6.278 MB / 0.5553 GB, free: 2.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4253, allocations: 47.81 kB / 0.5553 GB, free: 2.824 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.711e-06/0.4253, allocations: 0 / 0.5553 GB, free: 2.824 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02371/0.449, allocations: 8.297 MB / 0.5634 GB, free: 10.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.4491, allocations: 81.28 kB / 0.5635 GB, free: 10.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006393/0.4555, allocations: 3.073 MB / 0.5665 GB, free: 7.266 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002296/0.4558, allocations: 61.69 kB / 0.5666 GB, free: 7.199 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.4577, allocations: 2.421 MB / 0.5689 GB, free: 4.746 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009522/0.4587, allocations: 0.844 MB / 0.5698 GB, free: 3.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002032/0.4607, allocations: 0.9886 MB / 0.5707 GB, free: 2.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.064e-05/0.4608, allocations: 301.1 kB / 0.571 GB, free: 2.594 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002807/0.4636, allocations: 1.63 MB / 0.5726 GB, free: 0.957 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004963/0.4686, allocations: 4.256 MB / 0.5768 GB, free: 11.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007942/0.4766, allocations: 6.395 MB / 0.583 GB, free: 3.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-05/0.4767, allocations: 24 kB / 0.583 GB, free: 3.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.2153/0.692, allocations: 6.475 MB / 0.5894 GB, free: 106.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.6921, allocations: 44.86 kB / 0.5894 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/0.6923, allocations: 90.5 kB / 0.5895 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/0.6945, allocations: 0.7299 MB / 0.5902 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003635/0.6982, allocations: 1.053 MB / 0.5912 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/0.7113, allocations: 13.58 MB / 0.6045 GB, free: 97.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/0.7147, allocations: 263.9 kB / 0.6047 GB, free: 97.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006171/0.7153, allocations: 289.6 kB / 0.605 GB, free: 97.05 MB / 462.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.002806/0.7181, allocations: 1.785 MB / 0.6068 GB, free: 96.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004252/0.7186, allocations: 283.5 kB / 0.607 GB, free: 96.17 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004687/0.7233, allocations: 3.131 MB / 0.6101 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001077/0.7234, allocations: 34.84 kB / 0.6101 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.7234, allocations: 9.531 kB / 0.6101 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.7234, allocations: 11.58 kB / 0.6102 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.7359, allocations: 8.206 MB / 0.6182 GB, free: 91.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.736, allocations: 2.719 kB / 0.6182 GB, free: 91.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.737, allocations: 298.9 kB / 0.6185 GB, free: 91.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.7384, allocations: 0.576 MB / 0.619 GB, free: 91.64 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.7385, allocations: 45.22 kB / 0.6191 GB, free: 91.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008255/0.7468, allocations: 11.8 MB / 0.6306 GB, free: 82.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7468, allocations: 3.906 kB / 0.6306 GB, free: 82.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/0.7526, allocations: 4.7 MB / 0.6352 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007242/0.7533, allocations: 351.2 kB / 0.6355 GB, free: 80.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003268/0.7537, allocations: 39.06 kB / 0.6355 GB, free: 79.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/0.7546, allocations: 95.84 kB / 0.6356 GB, free: 79.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.7549, allocations: 152.9 kB / 0.6358 GB, free: 79.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.755, allocations: 72.45 kB / 0.6359 GB, free: 79.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002507/0.7575, allocations: 1.968 MB / 0.6378 GB, free: 78.47 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7575, allocations: 0 / 0.6378 GB, free: 78.47 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003731/0.7612, allocations: 0.9049 MB / 0.6387 GB, free: 77.57 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.005364/0.7666, allocations: 5.36 MB / 0.6439 GB, free: 72.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005691/0.7723, allocations: 4.739 MB / 0.6485 GB, free: 67.35 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.7724, allocations: 4.188 kB / 0.6485 GB, free: 67.35 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.7744, allocations: 1.984 MB / 0.6505 GB, free: 65.31 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.7765, allocations: 478.3 kB / 0.6509 GB, free: 64.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03896/0.8155, allocations: 35.31 MB / 0.6854 GB, free: 25.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/0.8181, allocations: 2.932 MB / 0.6883 GB, free: 22.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002645/0.8208, allocations: 1.378 MB / 0.6896 GB, free: 21.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/0.8225, allocations: 1.62 MB / 0.6912 GB, free: 19.82 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8225, allocations: 4 kB / 0.6912 GB, free: 19.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.9425, allocations: 62.71 MB / 0.7524 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.46/20.4, allocations: 10.91 kB / 0.7525 GB, free: 5.371 MB / 0.4981 GB (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)