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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009992/0.0009994, allocations: 180.9 kB / 15.45 MB, free: 0.6523 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.337/1.337, allocations: 223.3 MB / 239.5 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008059, allocations: 99.67 kB / 290.6 MB, free: 2.031 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.0381/0.0381, allocations: 9.122 MB / 350.9 MB, free: 4.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002927, allocations: 8.594 kB / 414.1 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09802, allocations: 52.43 MB / 466.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.0375/0.1356, allocations: 43.02 MB / 0.4976 GB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02005/0.1557, allocations: 9.222 MB / 0.5066 GB, free: 8.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009212/0.1649, allocations: 171.6 kB / 0.5068 GB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1664, allocations: 366 kB / 0.5072 GB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005443/0.1719, allocations: 1.483 MB / 0.5086 GB, free: 6.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009756/0.1729, allocations: 179.8 kB / 0.5088 GB, free: 6.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005738/0.1786, allocations: 4.076 MB / 0.5128 GB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/0.1805, allocations: 1.047 MB / 0.5138 GB, free: 1.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00163/0.1822, allocations: 0.9254 MB / 0.5147 GB, free: 156 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.1843, allocations: 1.529 MB / 0.5162 GB, free: 14.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004551/0.1847, allocations: 159.9 kB / 0.5163 GB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.1864, allocations: 0.7956 MB / 0.5171 GB, free: 13.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.1877, allocations: 1.312 MB / 0.5184 GB, free: 12.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.1895, allocations: 1.772 MB / 0.5201 GB, free: 10.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00564/0.1951, allocations: 5.146 MB / 0.5251 GB, free: 5.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1952, allocations: 0 / 0.5251 GB, free: 5.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.1952, allocations: 0 / 0.5251 GB, free: 5.395 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.1954, allocations: 0 / 0.5251 GB, free: 5.395 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.01359/0.209, allocations: 4.982 MB / 0.53 GB, free: 356 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.2091, allocations: 8.594 kB / 0.53 GB, free: 348 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1812/0.3903, allocations: 0.6291 MB / 0.5306 GB, free: 70.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006775/0.3971, allocations: 1.876 MB / 0.5325 GB, free: 69.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002524/0.3997, allocations: 1.567 MB / 0.534 GB, free: 69.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.3998, allocations: 188.1 kB / 0.5342 GB, free: 69.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004559/0.4003, allocations: 246.8 kB / 0.5344 GB, free: 69.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.4149, allocations: 9.306 MB / 0.5435 GB, free: 67.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.261e-05/0.415, allocations: 38.31 kB / 0.5435 GB, free: 67.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003177/0.4153, allocations: 114.7 kB / 0.5436 GB, free: 67.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003156/0.4185, allocations: 2.077 MB / 0.5457 GB, free: 67.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01411/0.4326, allocations: 8.242 MB / 0.5537 GB, free: 63.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0328/0.4654, allocations: 30.04 MB / 0.5831 GB, free: 32.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006683/0.4722, allocations: 3.032 MB / 0.586 GB, free: 29.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.4737, allocations: 1.112 MB / 0.5871 GB, free: 28.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006092/0.4798, allocations: 6.288 MB / 0.5932 GB, free: 21.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.4799, allocations: 51.81 kB / 0.5933 GB, free: 21.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 4.458e-06/0.4799, allocations: 1.922 kB / 0.5933 GB, free: 21.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=239): time 0.0268/0.5067, allocations: 12.33 MB / 0.6053 GB, free: 9.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008257/0.515, allocations: 8.808 MB / 0.6139 GB, free: 15.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004636/0.5197, allocations: 3.081 MB / 0.6169 GB, free: 12.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003422/0.5201, allocations: 61.7 kB / 0.617 GB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/0.5217, allocations: 2.418 MB / 0.6194 GB, free: 10.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008081/0.5225, allocations: 0.8686 MB / 0.6202 GB, free: 9.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005138/0.523, allocations: 425.2 kB / 0.6206 GB, free: 9.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5232, allocations: 309.1 kB / 0.6209 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002707/0.5259, allocations: 1.691 MB / 0.6226 GB, free: 7.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004299/0.5302, allocations: 4.316 MB / 0.6268 GB, free: 1.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007663/0.5379, allocations: 6.498 MB / 0.6331 GB, free: 9.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-05/0.538, allocations: 28 kB / 0.6332 GB, free: 9.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01213/0.5501, allocations: 6.628 MB / 0.6396 GB, free: 3.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.914e-05/0.5503, allocations: 45 kB / 0.6397 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/0.5504, allocations: 92 kB / 0.6398 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.5522, allocations: 0.7273 MB / 0.6405 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/0.5557, allocations: 1.068 MB / 0.6415 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/0.569, allocations: 12.46 MB / 0.6537 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003437/0.5725, allocations: 287.9 kB / 0.654 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004645/0.5729, allocations: 299.6 kB / 0.6542 GB, free: 3.406 MB / 414.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.0032/0.5761, allocations: 1.796 MB / 0.656 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/0.5767, allocations: 284.3 kB / 0.6563 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006076/0.5828, allocations: 3.442 MB / 0.6596 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004822/0.5877, allocations: 2.965 MB / 0.6625 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/0.5877, allocations: 8 kB / 0.6625 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-05/0.5878, allocations: 11.97 kB / 0.6625 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/0.6067, allocations: 10.61 MB / 0.6729 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.6067, allocations: 0 / 0.6729 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009882/0.6077, allocations: 279.6 kB / 0.6732 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/0.6097, allocations: 0.8032 MB / 0.6739 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.6098, allocations: 39.98 kB / 0.674 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/0.6231, allocations: 12.33 MB / 0.686 GB, free: 1.914 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006641/0.6297, allocations: 5.751 MB / 0.6916 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007749/0.6375, allocations: 5.015 MB / 0.6965 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.6388, allocations: 377.3 kB / 0.6969 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.6391, allocations: 39.94 kB / 0.6969 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6402, allocations: 115.8 kB / 0.6971 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003746/0.6406, allocations: 161.8 kB / 0.6972 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.6407, allocations: 71.97 kB / 0.6973 GB, free: 6.016 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002948/0.6436, allocations: 1.976 MB / 0.6992 GB, free: 4.035 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6437, allocations: 0 / 0.6992 GB, free: 4.035 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00394/0.6476, allocations: 0.9844 MB / 0.7002 GB, free: 3.051 MB / 462.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.2007/0.8483, allocations: 5.681 MB / 0.7057 GB, free: 141.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008655/0.857, allocations: 4.838 MB / 0.7104 GB, free: 140.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.8571, allocations: 0 / 0.7104 GB, free: 140.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003433/0.8605, allocations: 2.179 MB / 0.7126 GB, free: 140.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/0.8642, allocations: 441.5 kB / 0.713 GB, free: 140.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06064/0.9249, allocations: 42.17 MB / 0.7542 GB, free: 113.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003038/0.9279, allocations: 2.962 MB / 0.7571 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003572/0.9315, allocations: 1.405 MB / 0.7584 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002088/0.9337, allocations: 1.641 MB / 0.76 GB, free: 108.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9337, allocations: 0 / 0.76 GB, free: 108.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09079/1.024, allocations: 65.62 MB / 0.8241 GB, free: 43.57 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/1.025, allocations: 250.2 kB / 0.8243 GB, free: 43.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.667/4.692, allocations: 0 / 0.8243 GB, free: 43.32 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/linux/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)