Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.00197/0.00197, 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.00201/0.00201, allocations: 194.7 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.175/0.175, allocations: 9.103 MB / 299.5 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 71.88 kB / 362.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 51.42 MB / 413.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2279/0.3453, allocations: 10.47 MB / 424 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005259/0.3506, allocations: 2.971 MB / 426.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009658/0.3516, allocations: 43.69 kB / 427 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008742/0.3525, allocations: 453.3 kB / 427.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002969/0.3555, allocations: 1.574 MB / 429 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005371/0.356, allocations: 214.2 kB / 429.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002681/0.3587, allocations: 3.018 MB / 432.2 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.3602, allocations: 1.18 MB / 433.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.3616, allocations: 1.097 MB / 434.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.3633, allocations: 1.54 MB / 436 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.3638, allocations: 279.4 kB / 436.3 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.3653, allocations: 0.8747 MB / 437.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009543/0.3662, allocations: 1.409 MB / 438.6 MB, free: 33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.3678, allocations: 1.857 MB / 440.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007074/0.3749, allocations: 5.435 MB / 445.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3749, allocations: 0 / 445.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.375, allocations: 4 kB / 445.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000127/0.3751, allocations: 0 / 445.9 MB, free: 29.63 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.01401/0.3891, allocations: 5.733 MB / 451.6 MB, free: 27.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3892, allocations: 9.312 kB / 451.6 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008931/0.3901, allocations: 0.6347 MB / 452.3 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006632/0.3967, allocations: 1.841 MB / 454.1 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003638/0.4004, allocations: 1.562 MB / 455.7 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.4006, allocations: 190.8 kB / 455.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005374/0.4011, allocations: 240.2 kB / 456.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02001/0.4211, allocations: 9.304 MB / 465.4 MB, free: 21.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/0.4213, allocations: 32.77 kB / 465.4 MB, free: 21.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004072/0.4217, allocations: 117.3 kB / 465.5 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003846/0.4256, allocations: 2.074 MB / 467.6 MB, free: 21.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02005/0.4457, allocations: 8.244 MB / 475.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04692/0.4926, allocations: 30.02 MB / 0.494 GB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008132/0.5008, allocations: 3.034 MB / 0.497 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002023/0.5029, allocations: 1.112 MB / 0.4981 GB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009277/0.5122, allocations: 6.297 MB / 0.5042 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.5122, allocations: 51.86 kB / 0.5043 GB, free: 11.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.829e-06/0.5123, allocations: 0 / 0.5043 GB, free: 11.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.03224/0.5445, allocations: 12.31 MB / 0.5163 GB, free: 14.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01098/0.5555, allocations: 9.298 MB / 0.5254 GB, free: 5.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006256/0.5618, allocations: 3.085 MB / 0.5284 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005013/0.5624, allocations: 60.83 kB / 0.5284 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/0.5643, allocations: 2.42 MB / 0.5308 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/0.5657, allocations: 0.8634 MB / 0.5316 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00225/0.568, allocations: 1.008 MB / 0.5326 GB, free: 13.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.5681, allocations: 301.1 kB / 0.5329 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00306/0.5711, allocations: 1.696 MB / 0.5346 GB, free: 11.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004804/0.576, allocations: 4.316 MB / 0.5388 GB, free: 5.996 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008277/0.5843, allocations: 6.502 MB / 0.5451 GB, free: 14.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.5844, allocations: 24 kB / 0.5452 GB, free: 14.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01437/0.5988, allocations: 6.629 MB / 0.5516 GB, free: 7.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.5989, allocations: 48.88 kB / 0.5517 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.5991, allocations: 88 kB / 0.5518 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.6011, allocations: 0.738 MB / 0.5525 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004084/0.6052, allocations: 1.064 MB / 0.5535 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01575/0.6209, allocations: 13.62 MB / 0.5668 GB, free: 7.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.625, allocations: 287.9 kB / 0.5671 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008744/0.6259, allocations: 298.5 kB / 0.5674 GB, free: 6.73 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 (590): * Single equations (assignments): 579 * Array equations: 6 * 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%), (1,1,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003476/0.6294, allocations: 1.797 MB / 0.5691 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006616/0.6301, allocations: 288.2 kB / 0.5694 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006263/0.6364, allocations: 3.431 MB / 0.5728 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2097/0.8461, allocations: 2.964 MB / 0.5757 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/0.8462, allocations: 9.031 kB / 0.5757 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.619e-05/0.8462, allocations: 9.703 kB / 0.5757 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/0.8635, allocations: 10.61 MB / 0.586 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.8636, allocations: 3.188 kB / 0.586 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.8646, allocations: 277.3 kB / 0.5863 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/0.8664, allocations: 0.7842 MB / 0.5871 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.8665, allocations: 49.69 kB / 0.5871 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.8784, allocations: 13.48 MB / 0.6003 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005514/0.8839, allocations: 6.003 MB / 0.6061 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007296/0.8912, allocations: 5.01 MB / 0.611 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009677/0.8923, allocations: 366.3 kB / 0.6114 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/0.8927, allocations: 41.53 kB / 0.6114 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.8938, allocations: 109.9 kB / 0.6115 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004213/0.8942, allocations: 161 kB / 0.6117 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.8944, allocations: 65.91 kB / 0.6117 GB, free: 101.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003368/0.8977, allocations: 1.977 MB / 0.6137 GB, free: 100.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.8977, allocations: 0.6562 kB / 0.6137 GB, free: 100.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005449/0.9032, allocations: 0.984 MB / 0.6146 GB, free: 100.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (159): * Single equations (assignments): 150 * 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%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008469/0.9117, allocations: 5.691 MB / 0.6202 GB, free: 98.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0127/0.9244, allocations: 7.188 MB / 0.6272 GB, free: 96.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/0.9245, allocations: 4 kB / 0.6272 GB, free: 96.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0029/0.9274, allocations: 2.176 MB / 0.6293 GB, free: 94.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.93, allocations: 483.4 kB / 0.6298 GB, free: 94.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04952/0.9796, allocations: 40.34 MB / 0.6692 GB, free: 56.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003181/0.9828, allocations: 2.956 MB / 0.6721 GB, free: 53.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002936/0.9857, allocations: 1.383 MB / 0.6734 GB, free: 52.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/0.9874, allocations: 1.636 MB / 0.675 GB, free: 50.62 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.9874, allocations: 0 / 0.675 GB, free: 50.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3108/1.298, allocations: 68.01 MB / 0.7414 GB, free: 126.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.72, allocations: 6.672 kB / 0.7414 GB, free: 126.2 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)