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.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001368/0.001368, allocations: 192.8 kB / 16.14 MB, free: 6.715 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1413/0.1413, allocations: 9.104 MB / 299 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 59.89 kB / 361.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08825, allocations: 51.43 MB / 412.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.1874/0.2757, allocations: 44.17 MB / 456.9 MB, free: 17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01688/0.2926, allocations: 9.26 MB / 466.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007711/0.3003, allocations: 168.2 kB / 466.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.3014, allocations: 366.1 kB / 466.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003428/0.3048, allocations: 1.472 MB / 468.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.3053, allocations: 180.4 kB / 468.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002794/0.3081, allocations: 4.074 MB / 472.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.3091, allocations: 1.071 MB / 473.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008421/0.31, allocations: 0.9463 MB / 474.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.3113, allocations: 1.561 MB / 476 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000294/0.3116, allocations: 169.1 kB / 476.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.3129, allocations: 0.807 MB / 477 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009923/0.3139, allocations: 1.316 MB / 478.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.3152, allocations: 1.77 MB / 480.1 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004608/0.3198, allocations: 5.257 MB / 485.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3198, allocations: 5.484 kB / 485.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3198, allocations: 0 / 485.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.3199, allocations: 0 / 485.3 MB, free: 2.895 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.01464/0.3346, allocations: 5.743 MB / 491.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3347, allocations: 10.72 kB / 491.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/0.3357, allocations: 0.6324 MB / 491.7 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006722/0.3424, allocations: 1.842 MB / 493.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/0.3454, allocations: 1.565 MB / 495.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.3456, allocations: 186.1 kB / 495.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000434/0.346, allocations: 248.2 kB / 495.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.3591, allocations: 9.3 MB / 0.493 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/0.3592, allocations: 31.8 kB / 0.4931 GB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003328/0.3595, allocations: 115.8 kB / 0.4932 GB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.3626, allocations: 2.079 MB / 0.4952 GB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.3765, allocations: 8.24 MB / 0.5033 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03691/0.4135, allocations: 30.01 MB / 0.5326 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007444/0.421, allocations: 3.042 MB / 0.5355 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.4227, allocations: 1.112 MB / 0.5366 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007491/0.4302, allocations: 6.293 MB / 0.5428 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.4302, allocations: 47.88 kB / 0.5428 GB, free: 3.777 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.566e-06/0.4302, allocations: 0 / 0.5428 GB, free: 3.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.02886/0.4591, allocations: 12.3 MB / 0.5548 GB, free: 7.312 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009943/0.4691, allocations: 8.792 MB / 0.5634 GB, free: 14.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004056/0.4731, allocations: 3.085 MB / 0.5664 GB, free: 10.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.4733, allocations: 57.7 kB / 0.5665 GB, free: 10.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.4748, allocations: 2.421 MB / 0.5688 GB, free: 8.449 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/0.4754, allocations: 0.8632 MB / 0.5697 GB, free: 7.574 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.4767, allocations: 1 MB / 0.5707 GB, free: 6.562 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.857e-05/0.4768, allocations: 301.1 kB / 0.5709 GB, free: 6.266 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002548/0.4793, allocations: 1.693 MB / 0.5726 GB, free: 4.566 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1656/0.6449, allocations: 4.313 MB / 0.5768 GB, free: 123.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007124/0.6521, allocations: 6.5 MB / 0.5832 GB, free: 120 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.164e-05/0.6522, allocations: 28.61 kB / 0.5832 GB, free: 120 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.009228/0.6614, allocations: 6.635 MB / 0.5897 GB, free: 118.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.6615, allocations: 45.16 kB / 0.5897 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.229e-05/0.6615, allocations: 89.38 kB / 0.5898 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.6632, allocations: 0.7229 MB / 0.5905 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.6659, allocations: 1.072 MB / 0.5915 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/0.6762, allocations: 12.44 MB / 0.6037 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/0.6793, allocations: 289.1 kB / 0.604 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/0.6797, allocations: 292.4 kB / 0.6043 GB, free: 108.7 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.002258/0.6819, allocations: 1.795 MB / 0.606 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/0.6822, allocations: 282.5 kB / 0.6063 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.6871, allocations: 3.445 MB / 0.6096 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004422/0.6916, allocations: 2.961 MB / 0.6125 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.6916, allocations: 6.625 kB / 0.6125 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.6916, allocations: 12.27 kB / 0.6126 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/0.707, allocations: 10.62 MB / 0.6229 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.707, allocations: 2.844 kB / 0.6229 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009644/0.708, allocations: 271.8 kB / 0.6232 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.7102, allocations: 0.7949 MB / 0.624 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/0.7104, allocations: 52.05 kB / 0.624 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/0.7219, allocations: 12.32 MB / 0.636 GB, free: 92.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005167/0.7271, allocations: 5.749 MB / 0.6417 GB, free: 88.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006407/0.7335, allocations: 5.022 MB / 0.6466 GB, free: 85.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005436/0.734, allocations: 360.6 kB / 0.6469 GB, free: 85.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003214/0.7344, allocations: 42.67 kB / 0.6469 GB, free: 85.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.7354, allocations: 111.5 kB / 0.647 GB, free: 85.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.7357, allocations: 163 kB / 0.6472 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.7358, allocations: 69.91 kB / 0.6473 GB, free: 84.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002364/0.7382, allocations: 1.97 MB / 0.6492 GB, free: 83.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7382, allocations: 0 / 0.6492 GB, free: 83.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003646/0.7419, allocations: 0.9896 MB / 0.6502 GB, free: 82.35 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.006093/0.748, allocations: 5.696 MB / 0.6557 GB, free: 77.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005531/0.7535, allocations: 4.832 MB / 0.6604 GB, free: 72.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7535, allocations: 2.906 kB / 0.6604 GB, free: 72.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.7558, allocations: 2.183 MB / 0.6626 GB, free: 70.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.7578, allocations: 433.2 kB / 0.663 GB, free: 70.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04406/0.8018, allocations: 42.11 MB / 0.7041 GB, free: 22.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.8042, allocations: 2.959 MB / 0.707 GB, free: 19.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002829/0.807, allocations: 1.401 MB / 0.7084 GB, free: 18.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/0.8086, allocations: 1.64 MB / 0.71 GB, free: 16.78 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.8086, allocations: 0 / 0.71 GB, free: 16.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2269/1.035, allocations: 66.43 MB / 0.7748 GB, free: 129.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001408/1.036, allocations: 254.9 kB / 0.7751 GB, free: 128.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.304/4.339, allocations: 0 / 0.7751 GB, free: 128.8 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)