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.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 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.001257/0.001257, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.001491/0.001491, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1558/0.1558, allocations: 9.099 MB / 300.1 MB, free: 2.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 52.42 MB / 415.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2369/0.3529, allocations: 37.62 MB / 453.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01681/0.3697, allocations: 9.304 MB / 462.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006757/0.3765, allocations: 166 kB / 462.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005118/0.3817, allocations: 1.879 MB / 464.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01401/0.3957, allocations: 5.576 MB / 470.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.397, allocations: 202.4 kB / 470.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.399, allocations: 1.738 MB / 472 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000813/0.3998, allocations: 1.044 MB / 473 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005364/0.4003, allocations: 0.8311 MB / 473.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008704/0.4012, allocations: 1.166 MB / 475 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.4014, allocations: 159 kB / 475.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009423/0.4024, allocations: 0.6799 MB / 475.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007565/0.4031, allocations: 1.195 MB / 477.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004286/0.4036, allocations: 0.7381 MB / 477.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.4069, allocations: 4.173 MB / 482 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.4069, allocations: 0 / 482 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4069, allocations: 0 / 482 MB, free: 7.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.237e-05/0.407, allocations: 0 / 482 MB, free: 7.137 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.01148/0.4185, allocations: 5.123 MB / 487.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.4185, allocations: 9.344 kB / 487.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009882/0.4195, allocations: 0.6352 MB / 487.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007488/0.427, allocations: 2.245 MB / 490 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003061/0.4301, allocations: 1.531 MB / 491.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.4302, allocations: 185.2 kB / 491.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004559/0.4307, allocations: 247.5 kB / 491.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.4436, allocations: 9.336 MB / 0.4895 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.9e-05/0.4437, allocations: 27.81 kB / 0.4896 GB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003396/0.444, allocations: 119.8 kB / 0.4897 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003228/0.4473, allocations: 2.072 MB / 0.4917 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01596/0.4632, allocations: 8.276 MB / 0.4998 GB, free: 3.004 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04612/0.5094, allocations: 29.98 MB / 0.5291 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007616/0.517, allocations: 3.02 MB / 0.532 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002586/0.5197, allocations: 2.715 MB / 0.5347 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.5197, allocations: 48.52 kB / 0.5347 GB, free: 14.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=205): time 4.278e-06/0.5197, allocations: 8 kB / 0.5347 GB, free: 14.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=265): time 0.03998/0.5597, allocations: 13.64 MB / 0.548 GB, free: 128 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0158/0.5756, allocations: 9.105 MB / 0.5569 GB, free: 6.539 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005286/0.5809, allocations: 2.964 MB / 0.5598 GB, free: 3.562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006529/0.5816, allocations: 69.69 kB / 0.5599 GB, free: 3.488 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002262/0.5839, allocations: 2.356 MB / 0.5622 GB, free: 1.098 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.5851, allocations: 0.94 MB / 0.5631 GB, free: 148 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.5854, allocations: 104 kB / 0.5632 GB, free: 44 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003599/0.5857, allocations: 0.5172 MB / 0.5637 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/0.5885, allocations: 1.708 MB / 0.5654 GB, free: 13.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/0.5935, allocations: 4.309 MB / 0.5696 GB, free: 8.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00469/0.5982, allocations: 2.727 MB / 0.5722 GB, free: 5.492 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-05/0.5983, allocations: 28 kB / 0.5723 GB, free: 5.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.2462/0.8445, allocations: 6.66 MB / 0.5788 GB, free: 117.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.217e-05/0.8446, allocations: 44.95 kB / 0.5788 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.8447, allocations: 92.53 kB / 0.5789 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.8464, allocations: 0.7313 MB / 0.5796 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/0.8498, allocations: 1.086 MB / 0.5807 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.861, allocations: 12.67 MB / 0.5931 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003819/0.8649, allocations: 290.9 kB / 0.5933 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004823/0.8654, allocations: 299.6 kB / 0.5936 GB, free: 110.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 (598): * Single equations (assignments): 587 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.002874/0.8683, allocations: 1.806 MB / 0.5954 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/0.8687, allocations: 289 kB / 0.5957 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005773/0.8745, allocations: 3.919 MB / 0.5995 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004305/0.8788, allocations: 3.115 MB / 0.6025 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.8788, allocations: 6.375 kB / 0.6025 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/0.8788, allocations: 14.17 kB / 0.6025 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.8965, allocations: 11.31 MB / 0.6136 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/0.8965, allocations: 10.81 kB / 0.6136 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.8977, allocations: 313.5 kB / 0.6139 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/0.8999, allocations: 0.7881 MB / 0.6147 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001389/0.9, allocations: 55.08 kB / 0.6147 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01309/0.9131, allocations: 12.62 MB / 0.627 GB, free: 94.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006329/0.9195, allocations: 5.866 MB / 0.6328 GB, free: 90.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/0.9271, allocations: 5.966 MB / 0.6386 GB, free: 87.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009883/0.9281, allocations: 384.8 kB / 0.639 GB, free: 87.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003181/0.9285, allocations: 55.2 kB / 0.639 GB, free: 87.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.9296, allocations: 116.3 kB / 0.6391 GB, free: 87.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003694/0.9299, allocations: 185.3 kB / 0.6393 GB, free: 87.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.9301, allocations: 85.16 kB / 0.6394 GB, free: 87.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002443/0.9325, allocations: 1.909 MB / 0.6413 GB, free: 86.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9325, allocations: 0 / 0.6413 GB, free: 86.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004036/0.9366, allocations: 0.9923 MB / 0.6422 GB, free: 86.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (182): * Single equations (assignments): 173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.007071/0.9437, allocations: 8.269 MB / 0.6503 GB, free: 81.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006857/0.9505, allocations: 4.948 MB / 0.6551 GB, free: 77.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.9506, allocations: 4 kB / 0.6551 GB, free: 77.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/0.9533, allocations: 2.278 MB / 0.6574 GB, free: 75.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.9556, allocations: 427 kB / 0.6578 GB, free: 75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2868/1.242, allocations: 89.57 MB / 0.7452 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003219/1.246, allocations: 3.056 MB / 0.7482 GB, free: 133.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003547/1.249, allocations: 1.442 MB / 0.7496 GB, free: 133.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/1.251, allocations: 1.623 MB / 0.7512 GB, free: 133.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.312e-06/1.251, allocations: 3.781 kB / 0.7512 GB, free: 133.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1236/1.375, allocations: 71.42 MB / 0.821 GB, free: 93.38 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/1.375, allocations: 231 kB / 0.8212 GB, free: 93.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/5.248, allocations: 4 kB / 0.8212 GB, free: 93.13 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) Environment - environmentSimulation: