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.004944/0.004944, allocations: 99.67 kB / 15.73 MB, free: 6.016 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.001149/0.001149, allocations: 193.1 kB / 16.68 MB, free: 5.934 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04414/0.04414, allocations: 9.12 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.91 kB / 414.1 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08239/0.08355, allocations: 51.45 MB / 465.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.009755/0.09333, allocations: 9.526 MB / 475.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005044/0.0984, allocations: 2.753 MB / 477.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.09954, allocations: 35.94 kB / 477.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.101, allocations: 397.3 kB / 478.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003916/0.105, allocations: 1.467 MB / 479.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.1056, allocations: 171.6 kB / 479.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/0.1089, allocations: 2.715 MB / 482.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001372/0.1103, allocations: 0.9563 MB / 483.6 MB, free: 44 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.1118, allocations: 0.9765 MB / 484.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.1138, allocations: 1.397 MB / 486 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006271/0.1144, allocations: 252 kB / 486.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.1162, allocations: 0.8387 MB / 487 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001597/0.1178, allocations: 1.332 MB / 488.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002507/0.1203, allocations: 1.712 MB / 490.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005642/0.126, allocations: 5.407 MB / 495.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.126, allocations: 0 / 495.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.126, allocations: 0 / 495.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.1261, allocations: 0 / 495.5 MB, free: 4.086 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.006579/0.1327, allocations: 3.701 MB / 499.2 MB, free: 320 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1327, allocations: 12.03 kB / 499.2 MB, free: 308 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006794/0.1334, allocations: 0.593 MB / 499.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007108/0.1405, allocations: 1.867 MB / 0.4899 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002806/0.1434, allocations: 1.433 MB / 0.4913 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.1435, allocations: 168.4 kB / 0.4915 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.1439, allocations: 215.9 kB / 0.4917 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01211/0.1561, allocations: 8.674 MB / 0.5001 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.1562, allocations: 27.77 kB / 0.5002 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.1565, allocations: 107.8 kB / 0.5003 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00323/0.1597, allocations: 2.087 MB / 0.5023 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2229/0.3827, allocations: 7.496 MB / 0.5096 GB, free: 38.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03485/0.4175, allocations: 27.02 MB / 0.536 GB, free: 19.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003894/0.4215, allocations: 2.187 MB / 0.5382 GB, free: 18.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.4228, allocations: 0.9408 MB / 0.5391 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/0.4306, allocations: 5.573 MB / 0.5445 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.4306, allocations: 43.56 kB / 0.5446 GB, free: 12.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 3.316e-06/0.4306, allocations: 4 kB / 0.5446 GB, free: 12.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01199/0.4426, allocations: 7.049 MB / 0.5514 GB, free: 5.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.4427, allocations: 68.39 kB / 0.5515 GB, free: 5.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.4459, allocations: 2.944 MB / 0.5544 GB, free: 2.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.244e-05/0.446, allocations: 41.7 kB / 0.5544 GB, free: 2.082 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.4472, allocations: 2.45 MB / 0.5568 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000531/0.4477, allocations: 0.5337 MB / 0.5573 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.449, allocations: 0.8615 MB / 0.5582 GB, free: 14.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4491, allocations: 309.1 kB / 0.5585 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.4513, allocations: 1.347 MB / 0.5598 GB, free: 12.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003946/0.4553, allocations: 3.795 MB / 0.5635 GB, free: 7.559 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00614/0.4614, allocations: 5.495 MB / 0.5689 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/0.4615, allocations: 24 kB / 0.5689 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.01005/0.4715, allocations: 5.64 MB / 0.5744 GB, free: 11.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.219e-05/0.4717, allocations: 44.25 kB / 0.5744 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.4718, allocations: 88 kB / 0.5745 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/0.4726, allocations: 384 kB / 0.5749 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/0.4756, allocations: 0.9162 MB / 0.5758 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007048/0.4826, allocations: 9.091 MB / 0.5847 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002997/0.4856, allocations: 226.7 kB / 0.5849 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004278/0.4861, allocations: 252 kB / 0.5851 GB, free: 15.45 MB / 430.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.002401/0.4885, allocations: 1.702 MB / 0.5868 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.4889, allocations: 254.2 kB / 0.587 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003346/0.4922, allocations: 2.247 MB / 0.5892 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001787/0.4924, allocations: 35.97 kB / 0.5893 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4925, allocations: 12.05 kB / 0.5893 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.4925, allocations: 7.969 kB / 0.5893 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009349/0.5018, allocations: 5.768 MB / 0.5949 GB, free: 5.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.5019, allocations: 4.438 kB / 0.5949 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007055/0.5026, allocations: 171.8 kB / 0.5951 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004386/0.503, allocations: 170.3 kB / 0.5952 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.598e-05/0.5031, allocations: 23.98 kB / 0.5953 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003722/0.5068, allocations: 5.196 MB / 0.6003 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.5069, allocations: 7.938 kB / 0.6003 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.5111, allocations: 3.012 MB / 0.6033 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008351/0.512, allocations: 331.4 kB / 0.6036 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.5123, allocations: 27.83 kB / 0.6036 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008743/0.5132, allocations: 59.88 kB / 0.6037 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.5133, allocations: 80.83 kB / 0.6038 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.6e-05/0.5134, allocations: 40.06 kB / 0.6038 GB, free: 11.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002929/0.5164, allocations: 1.882 MB / 0.6056 GB, free: 9.656 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5164, allocations: 0 / 0.6056 GB, free: 9.656 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003741/0.5201, allocations: 0.73 MB / 0.6063 GB, free: 8.93 MB / 446.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.00486/0.525, allocations: 3.659 MB / 0.6099 GB, free: 5.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006849/0.5319, allocations: 3.705 MB / 0.6135 GB, free: 1.406 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.5319, allocations: 4 kB / 0.6135 GB, free: 1.402 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.5338, allocations: 1.139 MB / 0.6147 GB, free: 232 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.5362, allocations: 418.4 kB / 0.6151 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0478/0.584, allocations: 30.58 MB / 0.6449 GB, free: 13.81 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003087/0.5871, allocations: 2.746 MB / 0.6476 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002844/0.59, allocations: 1.213 MB / 0.6488 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/0.5919, allocations: 1.444 MB / 0.6502 GB, free: 8.379 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5919, allocations: 0 / 0.6502 GB, free: 8.379 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09255/0.6845, allocations: 46.75 MB / 0.6959 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.02/17.71, allocations: 18.75 kB / 0.6959 GB, free: 9.82 MB / 0.5294 GB (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)