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.008609/0.008608, allocations: 101.7 kB / 15.73 MB, free: 6.453 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.002567/0.002567, allocations: 191.3 kB / 16.67 MB, free: 6.355 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1621/0.1621, allocations: 9.099 MB / 299.6 MB, free: 1.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 72.02 kB / 414.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2199, allocations: 51.42 MB / 465.6 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.008435/0.2284, allocations: 10.5 MB / 476.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00526/0.2337, allocations: 2.962 MB / 479 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.2349, allocations: 45.75 kB / 479.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008856/0.2358, allocations: 448.3 kB / 479.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003235/0.2391, allocations: 1.588 MB / 481.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006111/0.2397, allocations: 218.5 kB / 481.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003536/0.2432, allocations: 3.02 MB / 484.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.2447, allocations: 1.184 MB / 485.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.2462, allocations: 1.09 MB / 486.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.2478, allocations: 1.544 MB / 488.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004688/0.2482, allocations: 276.4 kB / 488.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.25, allocations: 0.8767 MB / 489.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009983/0.251, allocations: 1.397 MB / 490.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.2523, allocations: 1.864 MB / 492.6 MB, free: 24 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007181/0.2595, allocations: 5.738 MB / 498.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/0.2595, allocations: 4 kB / 498.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2595, allocations: 0 / 498.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001246/0.2597, allocations: 0 / 498.3 MB, free: 11.39 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.01395/0.2736, allocations: 5.835 MB / 0.4923 GB, free: 5.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.2737, allocations: 19.91 kB / 0.4923 GB, free: 5.465 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009181/0.2746, allocations: 0.6301 MB / 0.493 GB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006962/0.2816, allocations: 1.863 MB / 0.4948 GB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.285, allocations: 1.588 MB / 0.4963 GB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.2852, allocations: 184.6 kB / 0.4965 GB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006299/0.2859, allocations: 251.7 kB / 0.4967 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/0.301, allocations: 9.303 MB / 0.5058 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.703e-05/0.3011, allocations: 35.77 kB / 0.5059 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/0.3015, allocations: 115.8 kB / 0.506 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003339/0.3048, allocations: 2.068 MB / 0.508 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/0.3216, allocations: 8.241 MB / 0.516 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04172/0.3633, allocations: 30 MB / 0.5453 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007596/0.371, allocations: 3.026 MB / 0.5483 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001988/0.373, allocations: 1.116 MB / 0.5494 GB, free: 9.734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00834/0.3814, allocations: 6.289 MB / 0.5555 GB, free: 2.781 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.3814, allocations: 47.88 kB / 0.5556 GB, free: 2.727 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.368e-06/0.3814, allocations: 0 / 0.5556 GB, free: 2.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02229/0.4037, allocations: 8.357 MB / 0.5637 GB, free: 10.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.4038, allocations: 81.33 kB / 0.5638 GB, free: 10.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004325/0.4082, allocations: 3.078 MB / 0.5668 GB, free: 7.113 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000187/0.4084, allocations: 65.69 kB / 0.5669 GB, free: 7.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001837/0.4102, allocations: 2.517 MB / 0.5693 GB, free: 4.504 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000799/0.411, allocations: 0.8796 MB / 0.5702 GB, free: 3.617 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.4124, allocations: 0.9931 MB / 0.5712 GB, free: 2.613 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4125, allocations: 309.1 kB / 0.5715 GB, free: 2.309 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002698/0.4152, allocations: 1.638 MB / 0.5731 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004733/0.42, allocations: 4.248 MB / 0.5772 GB, free: 11.12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008148/0.4281, allocations: 6.388 MB / 0.5834 GB, free: 3.473 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.077e-05/0.4282, allocations: 28 kB / 0.5835 GB, free: 3.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.2022/0.6305, allocations: 6.498 MB / 0.5898 GB, free: 106.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.285e-05/0.6306, allocations: 44.27 kB / 0.5899 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/0.6307, allocations: 91.25 kB / 0.5899 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/0.6328, allocations: 0.7264 MB / 0.5907 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003365/0.6361, allocations: 1.05 MB / 0.5917 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/0.6486, allocations: 13.6 MB / 0.605 GB, free: 97.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/0.6517, allocations: 263.5 kB / 0.6052 GB, free: 97.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003909/0.6522, allocations: 287.5 kB / 0.6055 GB, free: 96.99 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.002367/0.6545, allocations: 1.791 MB / 0.6072 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003486/0.6549, allocations: 295 kB / 0.6075 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004596/0.6595, allocations: 3.133 MB / 0.6106 GB, free: 94.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/0.6596, allocations: 32.27 kB / 0.6106 GB, free: 94.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.6596, allocations: 7.031 kB / 0.6106 GB, free: 94.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.6596, allocations: 10.64 kB / 0.6106 GB, free: 94.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.6707, allocations: 8.207 MB / 0.6186 GB, free: 91.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.6707, allocations: 3.875 kB / 0.6186 GB, free: 91.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6718, allocations: 300.6 kB / 0.6189 GB, free: 91.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.6731, allocations: 0.5702 MB / 0.6195 GB, free: 91.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.6732, allocations: 47.44 kB / 0.6195 GB, free: 91.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007946/0.6812, allocations: 11.82 MB / 0.6311 GB, free: 82.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6812, allocations: 11.78 kB / 0.6311 GB, free: 82.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005399/0.6866, allocations: 4.713 MB / 0.6357 GB, free: 80.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005936/0.6872, allocations: 363.6 kB / 0.636 GB, free: 79.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.6875, allocations: 40.88 kB / 0.6361 GB, free: 79.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009475/0.6885, allocations: 96.45 kB / 0.6362 GB, free: 79.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.6887, allocations: 154 kB / 0.6363 GB, free: 79.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6889, allocations: 63.73 kB / 0.6364 GB, free: 79.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002339/0.6912, allocations: 1.972 MB / 0.6383 GB, free: 78.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6912, allocations: 0 / 0.6383 GB, free: 78.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003454/0.6947, allocations: 0.9079 MB / 0.6392 GB, free: 77.15 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.005336/0.7, allocations: 5.373 MB / 0.6444 GB, free: 71.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005949/0.706, allocations: 4.739 MB / 0.6491 GB, free: 66.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.706, allocations: 0 / 0.6491 GB, free: 66.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.708, allocations: 1.999 MB / 0.651 GB, free: 64.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.7101, allocations: 474.7 kB / 0.6515 GB, free: 64.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03886/0.749, allocations: 35.47 MB / 0.6861 GB, free: 25.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002423/0.7515, allocations: 2.925 MB / 0.689 GB, free: 22.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002487/0.754, allocations: 1.378 MB / 0.6903 GB, free: 20.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001461/0.7554, allocations: 1.628 MB / 0.6919 GB, free: 19.21 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7554, allocations: 4 kB / 0.6919 GB, free: 19.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1845/0.94, allocations: 61.75 MB / 0.7522 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.35/21.29, allocations: 10.91 kB / 0.7522 GB, free: 5.719 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)