Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",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.001181/0.001181, allocations: 178.2 kB / 15.44 MB, free: 0.6562 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.317/1.317, allocations: 223.3 MB / 239.5 MB, free: 5.41 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.0008107/0.0008107, allocations: 87.77 kB / 290.6 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03836/0.03836, allocations: 9.114 MB / 350.9 MB, free: 4.277 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003196, allocations: 9.422 kB / 414.1 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 52.43 MB / 466.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.0243/0.1279, allocations: 27.39 MB / 494 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01355/0.1415, allocations: 6.206 MB / 0.4884 GB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005187/0.1467, allocations: 103.8 kB / 0.4885 GB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.1479, allocations: 326.4 kB / 0.4888 GB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003511/0.1515, allocations: 1.327 MB / 0.4901 GB, free: 9.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.152, allocations: 143.8 kB / 0.4903 GB, free: 9.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004029/0.156, allocations: 3.781 MB / 0.494 GB, free: 5.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.1573, allocations: 0.8665 MB / 0.4948 GB, free: 4.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.1584, allocations: 0.8127 MB / 0.4956 GB, free: 3.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.1602, allocations: 1.397 MB / 0.497 GB, free: 2.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003127/0.1605, allocations: 148 kB / 0.4971 GB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.1619, allocations: 0.7722 MB / 0.4979 GB, free: 1.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001043/0.163, allocations: 1.254 MB / 0.4991 GB, free: 164 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.1644, allocations: 1.632 MB / 0.5007 GB, free: 14.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004462/0.1688, allocations: 4.846 MB / 0.5054 GB, free: 9.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1689, allocations: 0 / 0.5054 GB, free: 9.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1689, allocations: 0 / 0.5054 GB, free: 9.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.049e-05/0.169, allocations: 0 / 0.5054 GB, free: 9.648 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.00586/0.1748, allocations: 2.931 MB / 0.5083 GB, free: 6.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1749, allocations: 8.594 kB / 0.5083 GB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007429/0.1756, allocations: 0.593 MB / 0.5089 GB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006829/0.1825, allocations: 1.88 MB / 0.5107 GB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.1853, allocations: 1.429 MB / 0.5121 GB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1855, allocations: 164.4 kB / 0.5123 GB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004317/0.1859, allocations: 219.9 kB / 0.5125 GB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/0.1979, allocations: 8.67 MB / 0.5209 GB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.198, allocations: 19.81 kB / 0.521 GB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004448/0.1984, allocations: 111.8 kB / 0.5211 GB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003422/0.2019, allocations: 2.095 MB / 0.5231 GB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2063/0.4082, allocations: 7.495 MB / 0.5304 GB, free: 64.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03436/0.4426, allocations: 27.1 MB / 0.5569 GB, free: 50.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004492/0.4471, allocations: 2.177 MB / 0.559 GB, free: 49.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.4489, allocations: 0.9473 MB / 0.5599 GB, free: 48.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007901/0.4569, allocations: 5.564 MB / 0.5654 GB, free: 44.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4569, allocations: 43.5 kB / 0.5654 GB, free: 44.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 4.058e-06/0.4569, allocations: 3.984 kB / 0.5654 GB, free: 44.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=135): time 0.01157/0.4685, allocations: 7.001 MB / 0.5723 GB, free: 40.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.4686, allocations: 65.72 kB / 0.5723 GB, free: 40.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/0.4718, allocations: 2.937 MB / 0.5752 GB, free: 38.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.01e-05/0.4719, allocations: 46.8 kB / 0.5752 GB, free: 38.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009084/0.4728, allocations: 2.358 MB / 0.5775 GB, free: 35.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.4731, allocations: 0.5112 MB / 0.578 GB, free: 35.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/0.4734, allocations: 352.5 kB / 0.5784 GB, free: 35.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.4734, allocations: 309.1 kB / 0.5787 GB, free: 34.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.4752, allocations: 1.347 MB / 0.58 GB, free: 33.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/0.4777, allocations: 3.803 MB / 0.5837 GB, free: 28.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/0.4822, allocations: 5.492 MB / 0.5891 GB, free: 21.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-05/0.4822, allocations: 24 kB / 0.5891 GB, free: 21.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.006664/0.4889, allocations: 5.624 MB / 0.5946 GB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.489, allocations: 43.94 kB / 0.5946 GB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.935e-05/0.4891, allocations: 88 kB / 0.5947 GB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006388/0.4897, allocations: 380.2 kB / 0.5951 GB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/0.4919, allocations: 0.9202 MB / 0.596 GB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004709/0.4967, allocations: 8.242 MB / 0.604 GB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002786/0.4995, allocations: 215.9 kB / 0.6042 GB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004118/0.4999, allocations: 258.2 kB / 0.6045 GB, free: 5.184 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * Array equations: 5 * 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): 5 systems {(2,11,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002779/0.5027, allocations: 1.701 MB / 0.6061 GB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.5031, allocations: 248.8 kB / 0.6064 GB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.5062, allocations: 2.25 MB / 0.6086 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001679/0.5064, allocations: 39.95 kB / 0.6086 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.5065, allocations: 7.938 kB / 0.6086 GB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5065, allocations: 3.984 kB / 0.6086 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008781/0.5153, allocations: 5.79 MB / 0.6143 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.5153, allocations: 0 / 0.6143 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000699/0.516, allocations: 175.7 kB / 0.6144 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004247/0.5165, allocations: 155.7 kB / 0.6146 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.5165, allocations: 37.25 kB / 0.6146 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00341/0.5199, allocations: 4.68 MB / 0.6192 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.52, allocations: 4 kB / 0.6192 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004266/0.5242, allocations: 3.009 MB / 0.6221 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008156/0.5251, allocations: 342.1 kB / 0.6225 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004739/0.5256, allocations: 25.39 kB / 0.6225 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.5267, allocations: 60.47 kB / 0.6225 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.5268, allocations: 76.84 kB / 0.6226 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-05/0.5269, allocations: 57.2 kB / 0.6227 GB, free: 1.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003287/0.5302, allocations: 1.875 MB / 0.6245 GB, free: 15.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5303, allocations: 0 / 0.6245 GB, free: 15.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003616/0.5339, allocations: 0.7225 MB / 0.6252 GB, free: 15.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004683/0.5386, allocations: 3.653 MB / 0.6288 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005609/0.5442, allocations: 3.687 MB / 0.6324 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5442, allocations: 4 kB / 0.6324 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.5457, allocations: 1.133 MB / 0.6335 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003246/0.549, allocations: 387.6 kB / 0.6338 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06066/0.6097, allocations: 34.86 MB / 0.6679 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004172/0.6139, allocations: 2.757 MB / 0.6706 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003449/0.6174, allocations: 1.21 MB / 0.6718 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/0.6201, allocations: 1.444 MB / 0.6732 GB, free: 8.941 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6201, allocations: 0 / 0.6732 GB, free: 8.941 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/0.8794, allocations: 48.28 MB / 0.7203 GB, free: 144.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.8796, allocations: 209.1 kB / 0.7205 GB, free: 144.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.088/3.967, allocations: 0 / 0.7205 GB, free: 144.5 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)