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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007522/0.007522, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001884/0.001885, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1607/0.1607, allocations: 9.105 MB / 299.6 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.88 kB / 414.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2304, allocations: 51.43 MB / 465.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.008327/0.2387, allocations: 9.536 MB / 475.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005059/0.2438, allocations: 2.735 MB / 477.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.2451, allocations: 45.56 kB / 477.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008894/0.246, allocations: 400.8 kB / 478.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003017/0.2491, allocations: 1.422 MB / 479.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004882/0.2496, allocations: 168.8 kB / 479.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.2525, allocations: 2.718 MB / 482.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.2538, allocations: 0.9517 MB / 483.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.2552, allocations: 0.9682 MB / 484.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.2569, allocations: 1.399 MB / 485.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005431/0.2575, allocations: 247.8 kB / 486.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.259, allocations: 0.8426 MB / 487 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009876/0.26, allocations: 1.334 MB / 488.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.2616, allocations: 1.71 MB / 490 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006578/0.2682, allocations: 5.403 MB / 495.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2683, allocations: 1.062 kB / 495.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2683, allocations: 0 / 495.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001612/0.2684, allocations: 0 / 495.4 MB, free: 14.1 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.009484/0.2779, allocations: 3.707 MB / 499.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.278, allocations: 8.031 kB / 499.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00116/0.2792, allocations: 0.6008 MB / 499.8 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007414/0.2866, allocations: 1.863 MB / 0.4899 GB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.2895, allocations: 1.433 MB / 0.4913 GB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.2897, allocations: 164.4 kB / 0.4914 GB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005286/0.2902, allocations: 224 kB / 0.4916 GB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.3059, allocations: 8.678 MB / 0.5001 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.548e-05/0.306, allocations: 23.77 kB / 0.5001 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003289/0.3063, allocations: 107.8 kB / 0.5002 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003661/0.31, allocations: 2.075 MB / 0.5023 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.325, allocations: 7.506 MB / 0.5096 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03944/0.3645, allocations: 27.02 MB / 0.536 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/0.3694, allocations: 2.183 MB / 0.5381 GB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.3712, allocations: 0.951 MB / 0.539 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.3813, allocations: 5.564 MB / 0.5445 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.3814, allocations: 39.56 kB / 0.5445 GB, free: 14.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.656e-06/0.3814, allocations: 0 / 0.5445 GB, free: 14.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=135): time 0.01476/0.3962, allocations: 7.048 MB / 0.5514 GB, free: 7.234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3963, allocations: 68.41 kB / 0.5515 GB, free: 7.156 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004417/0.4007, allocations: 2.948 MB / 0.5543 GB, free: 4.191 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.703e-05/0.4008, allocations: 45.7 kB / 0.5544 GB, free: 4.141 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001863/0.4027, allocations: 2.445 MB / 0.5568 GB, free: 1.672 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004983/0.4032, allocations: 0.5388 MB / 0.5573 GB, free: 1.129 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001213/0.4044, allocations: 0.8498 MB / 0.5581 GB, free: 272 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.4046, allocations: 309.1 kB / 0.5584 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002403/0.407, allocations: 1.347 MB / 0.5597 GB, free: 14.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004549/0.4115, allocations: 3.799 MB / 0.5634 GB, free: 9.578 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007381/0.4189, allocations: 5.501 MB / 0.5688 GB, free: 2.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.004e-05/0.419, allocations: 24 kB / 0.5688 GB, free: 2.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.0106/0.4296, allocations: 5.625 MB / 0.5743 GB, free: 13.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.4297, allocations: 43.94 kB / 0.5744 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.4298, allocations: 92.16 kB / 0.5745 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000874/0.4307, allocations: 384.4 kB / 0.5748 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/0.4335, allocations: 0.9202 MB / 0.5757 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008138/0.4417, allocations: 9.08 MB / 0.5846 GB, free: 1.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003053/0.4447, allocations: 223.9 kB / 0.5848 GB, free: 1.688 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004775/0.4452, allocations: 252 kB / 0.5851 GB, free: 1.441 MB / 462.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.2001/0.6453, allocations: 1.702 MB / 0.5867 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.6459, allocations: 251.8 kB / 0.587 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003883/0.6498, allocations: 2.25 MB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001952/0.65, allocations: 39.19 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.65, allocations: 3.781 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.65, allocations: 11.75 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.6605, allocations: 5.769 MB / 0.5948 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.6606, allocations: 7.312 kB / 0.5948 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000731/0.6613, allocations: 175.4 kB / 0.595 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004698/0.6618, allocations: 167.2 kB / 0.5952 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.511e-05/0.6619, allocations: 25.27 kB / 0.5952 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003179/0.6651, allocations: 5.198 MB / 0.6003 GB, free: 101.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.6651, allocations: 4.375 kB / 0.6003 GB, free: 101.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/0.6692, allocations: 3.019 MB / 0.6032 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006858/0.6699, allocations: 335.4 kB / 0.6035 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003052/0.6702, allocations: 25.19 kB / 0.6036 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008358/0.671, allocations: 62.11 kB / 0.6036 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.6712, allocations: 82.59 kB / 0.6037 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/0.6713, allocations: 44.03 kB / 0.6038 GB, free: 100.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002676/0.674, allocations: 1.875 MB / 0.6056 GB, free: 99.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.674, allocations: 0 / 0.6056 GB, free: 99.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003601/0.6776, allocations: 0.7203 MB / 0.6063 GB, free: 99.64 MB / 462.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.004485/0.6821, allocations: 3.662 MB / 0.6099 GB, free: 97.72 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.6878, allocations: 3.706 MB / 0.6135 GB, free: 96.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.6879, allocations: 1.125 kB / 0.6135 GB, free: 96.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.6895, allocations: 1.139 MB / 0.6146 GB, free: 95.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.6918, allocations: 421.7 kB / 0.615 GB, free: 95.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03622/0.728, allocations: 30.59 MB / 0.6449 GB, free: 68.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002301/0.7304, allocations: 2.746 MB / 0.6476 GB, free: 65.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002288/0.7327, allocations: 1.206 MB / 0.6487 GB, free: 64.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/0.7341, allocations: 1.444 MB / 0.6501 GB, free: 63.32 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7341, allocations: 0 / 0.6501 GB, free: 63.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08259/0.8167, allocations: 46.76 MB / 0.6958 GB, free: 16.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/18.59, allocations: 13.58 kB / 0.6958 GB, free: 16.82 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)