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.001074/0.001074, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001381/0.001381, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1561/0.1561, allocations: 9.095 MB / 299.2 MB, free: 1.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 55.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09447, allocations: 51.44 MB / 413 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2008/0.2953, allocations: 44.18 MB / 457.1 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.3139, allocations: 9.223 MB / 466.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00907/0.323, allocations: 164.5 kB / 466.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.3246, allocations: 373.2 kB / 466.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004006/0.3286, allocations: 1.461 MB / 468.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008253/0.3295, allocations: 185.2 kB / 468.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.3329, allocations: 3.03 MB / 471.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.3347, allocations: 1.202 MB / 472.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.3364, allocations: 1.099 MB / 473.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.3388, allocations: 1.663 MB / 475.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008391/0.3396, allocations: 275.7 kB / 475.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.3417, allocations: 0.8969 MB / 476.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001591/0.3433, allocations: 1.41 MB / 478.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00255/0.3458, allocations: 1.867 MB / 480 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00596/0.3518, allocations: 5.466 MB / 485.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3519, allocations: 0 / 485.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3519, allocations: 0 / 485.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001926/0.3521, allocations: 0 / 485.4 MB, free: 2.434 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.01538/0.3675, allocations: 5.742 MB / 491.2 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3675, allocations: 7.031 kB / 491.2 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001328/0.3689, allocations: 0.6355 MB / 491.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007015/0.3759, allocations: 1.834 MB / 493.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003554/0.3795, allocations: 1.57 MB / 495.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.3796, allocations: 186.2 kB / 495.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006546/0.3803, allocations: 246.6 kB / 495.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.3962, allocations: 9.311 MB / 0.4931 GB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.711e-05/0.3963, allocations: 35.66 kB / 0.4932 GB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003619/0.3967, allocations: 111.9 kB / 0.4933 GB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003191/0.3999, allocations: 2.072 MB / 0.4953 GB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.4165, allocations: 8.242 MB / 0.5033 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04133/0.4578, allocations: 30.03 MB / 0.5327 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007509/0.4654, allocations: 3.034 MB / 0.5356 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.4671, allocations: 1.116 MB / 0.5367 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007815/0.475, allocations: 6.292 MB / 0.5429 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.475, allocations: 51.88 kB / 0.5429 GB, free: 3.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.787e-06/0.475, allocations: 0 / 0.5429 GB, free: 3.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02209/0.4971, allocations: 8.279 MB / 0.551 GB, free: 11.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.4972, allocations: 77.34 kB / 0.5511 GB, free: 11.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/0.5012, allocations: 3.073 MB / 0.5541 GB, free: 8.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.5015, allocations: 61.7 kB / 0.5541 GB, free: 8.164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.5029, allocations: 2.428 MB / 0.5565 GB, free: 5.703 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/0.5037, allocations: 0.844 MB / 0.5573 GB, free: 4.848 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/0.5049, allocations: 0.9807 MB / 0.5583 GB, free: 3.855 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5051, allocations: 305.1 kB / 0.5586 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00247/0.5075, allocations: 1.63 MB / 0.5602 GB, free: 1.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004144/0.5117, allocations: 4.26 MB / 0.5643 GB, free: 12.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007369/0.5191, allocations: 6.386 MB / 0.5706 GB, free: 4.719 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.006e-05/0.5192, allocations: 28 kB / 0.5706 GB, free: 4.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.1823/0.7015, allocations: 6.482 MB / 0.5769 GB, free: 123.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.7016, allocations: 45.66 kB / 0.577 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.942e-05/0.7017, allocations: 90.78 kB / 0.577 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.7034, allocations: 0.7274 MB / 0.5777 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003171/0.7066, allocations: 1.05 MB / 0.5788 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.7176, allocations: 13.6 MB / 0.5921 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/0.721, allocations: 261.9 kB / 0.5923 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005072/0.7216, allocations: 295.5 kB / 0.5926 GB, free: 114.9 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.002519/0.7241, allocations: 1.788 MB / 0.5943 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003919/0.7245, allocations: 282.5 kB / 0.5946 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/0.7289, allocations: 3.131 MB / 0.5977 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/0.7291, allocations: 33.06 kB / 0.5977 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.7291, allocations: 6.031 kB / 0.5977 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.7291, allocations: 9.516 kB / 0.5977 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.7403, allocations: 8.311 MB / 0.6058 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.7403, allocations: 5.328 kB / 0.6058 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.7413, allocations: 300.7 kB / 0.6061 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.7426, allocations: 0.5869 MB / 0.6067 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.7428, allocations: 46.23 kB / 0.6067 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009166/0.7519, allocations: 11.81 MB / 0.6183 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.752, allocations: 7.406 kB / 0.6183 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006801/0.7588, allocations: 4.694 MB / 0.6229 GB, free: 98.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008005/0.7596, allocations: 349.8 kB / 0.6232 GB, free: 98.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003416/0.76, allocations: 43.28 kB / 0.6232 GB, free: 98.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009902/0.761, allocations: 94.23 kB / 0.6233 GB, free: 98.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.7613, allocations: 154.5 kB / 0.6235 GB, free: 98.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.7615, allocations: 62 kB / 0.6235 GB, free: 98.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002994/0.7645, allocations: 1.973 MB / 0.6255 GB, free: 97.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7645, allocations: 0 / 0.6255 GB, free: 97.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004365/0.7689, allocations: 0.9043 MB / 0.6263 GB, free: 97.59 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.00699/0.7759, allocations: 5.361 MB / 0.6316 GB, free: 95.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01068/0.7866, allocations: 7.157 MB / 0.6386 GB, free: 93.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.7866, allocations: 0 / 0.6386 GB, free: 93.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.7888, allocations: 1.987 MB / 0.6405 GB, free: 91.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.7913, allocations: 473.9 kB / 0.641 GB, free: 90.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04702/0.8383, allocations: 41.29 MB / 0.6813 GB, free: 46.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002392/0.8407, allocations: 2.929 MB / 0.6841 GB, free: 43.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002887/0.8436, allocations: 1.382 MB / 0.6855 GB, free: 42.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/0.8452, allocations: 1.624 MB / 0.6871 GB, free: 40.72 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.8452, allocations: 0 / 0.6871 GB, free: 40.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2456/1.091, allocations: 64.56 MB / 0.7501 GB, free: 132.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/1.091, allocations: 220.6 kB / 0.7503 GB, free: 132.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.69/4.781, allocations: 1.688 kB / 0.7503 GB, free: 132.3 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)