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.004786/0.004786, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001245/0.001245, allocations: 192.5 kB / 16.67 MB, free: 6.391 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1697/0.1697, allocations: 9.1 MB / 299.6 MB, free: 1.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 59.91 kB / 414.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2476, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.008138/0.2558, allocations: 9.546 MB / 475.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005298/0.2611, allocations: 2.736 MB / 477.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.2622, allocations: 40.94 kB / 477.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008004/0.263, allocations: 395.6 kB / 478.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002737/0.2658, allocations: 1.421 MB / 479.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.2662, allocations: 167.7 kB / 479.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002424/0.2686, allocations: 2.727 MB / 482.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009481/0.2696, allocations: 0.9472 MB / 483.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.2706, allocations: 0.9733 MB / 484.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.272, allocations: 1.395 MB / 485.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003919/0.2724, allocations: 252.8 kB / 486.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.2738, allocations: 0.8453 MB / 487 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008897/0.2747, allocations: 1.326 MB / 488.3 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.2759, allocations: 1.711 MB / 490 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005671/0.2815, allocations: 5.402 MB / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2816, allocations: 1.125 kB / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2816, allocations: 0 / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.2817, allocations: 0 / 495.4 MB, free: 14.11 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.007841/0.2896, allocations: 3.707 MB / 499.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.2896, allocations: 8.031 kB / 499.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008714/0.2905, allocations: 0.593 MB / 499.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007604/0.2981, allocations: 1.863 MB / 0.4899 GB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.3015, allocations: 1.433 MB / 0.4912 GB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.3016, allocations: 164.4 kB / 0.4914 GB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004632/0.3021, allocations: 224 kB / 0.4916 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/0.3155, allocations: 8.674 MB / 0.5001 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.548e-05/0.3156, allocations: 23.77 kB / 0.5001 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.3159, allocations: 107.8 kB / 0.5002 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003492/0.3194, allocations: 2.087 MB / 0.5023 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/0.3346, allocations: 7.514 MB / 0.5096 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04217/0.3769, allocations: 27.02 MB / 0.536 GB, free: 7.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004869/0.3818, allocations: 2.191 MB / 0.5381 GB, free: 5.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.3835, allocations: 0.9471 MB / 0.539 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009725/0.3932, allocations: 5.56 MB / 0.5445 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3933, allocations: 43.56 kB / 0.5445 GB, free: 14.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 5.671e-06/0.3933, allocations: 0 / 0.5445 GB, free: 14.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=135): time 0.01435/0.4077, allocations: 7.048 MB / 0.5514 GB, free: 7.227 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.4078, allocations: 68.39 kB / 0.5515 GB, free: 7.148 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00427/0.412, allocations: 2.944 MB / 0.5543 GB, free: 4.188 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.4122, allocations: 53.62 kB / 0.5544 GB, free: 4.129 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001907/0.4141, allocations: 2.449 MB / 0.5568 GB, free: 1.656 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006008/0.4147, allocations: 0.5388 MB / 0.5573 GB, free: 1.113 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.4159, allocations: 0.8537 MB / 0.5581 GB, free: 252 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.416, allocations: 301.1 kB / 0.5584 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/0.4183, allocations: 1.351 MB / 0.5597 GB, free: 14.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004197/0.4226, allocations: 3.796 MB / 0.5635 GB, free: 9.566 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007512/0.4301, allocations: 5.504 MB / 0.5688 GB, free: 2.855 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.612e-05/0.4302, allocations: 24 kB / 0.5688 GB, free: 2.832 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.0101/0.4403, allocations: 5.627 MB / 0.5743 GB, free: 13.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.4404, allocations: 43.94 kB / 0.5744 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.653e-05/0.4405, allocations: 88 kB / 0.5745 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008559/0.4413, allocations: 387.5 kB / 0.5748 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002787/0.4441, allocations: 0.9162 MB / 0.5757 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008721/0.4529, allocations: 9.082 MB / 0.5846 GB, free: 1.895 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/0.4567, allocations: 223.9 kB / 0.5848 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006107/0.4574, allocations: 252 kB / 0.5851 GB, free: 1.43 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.2252/0.6825, allocations: 1.699 MB / 0.5867 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.6831, allocations: 250.1 kB / 0.587 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003632/0.6867, allocations: 2.259 MB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001838/0.6869, allocations: 38.44 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.6869, allocations: 3.688 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.6869, allocations: 6.672 kB / 0.5892 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.6972, allocations: 5.769 MB / 0.5948 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.6972, allocations: 4.281 kB / 0.5948 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007187/0.6979, allocations: 178.2 kB / 0.595 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004785/0.6984, allocations: 163.7 kB / 0.5952 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.6985, allocations: 30.22 kB / 0.5952 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/0.7019, allocations: 5.199 MB / 0.6003 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.7019, allocations: 9.359 kB / 0.6003 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/0.7063, allocations: 3.017 MB / 0.6032 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00084/0.7072, allocations: 332.7 kB / 0.6035 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.7075, allocations: 21.77 kB / 0.6036 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009017/0.7084, allocations: 57.75 kB / 0.6036 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.7086, allocations: 86.58 kB / 0.6037 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.977e-05/0.7087, allocations: 41.81 kB / 0.6037 GB, free: 100.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.7115, allocations: 1.878 MB / 0.6056 GB, free: 99.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7115, allocations: 0 / 0.6056 GB, free: 99.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003554/0.7151, allocations: 0.7266 MB / 0.6063 GB, free: 99.58 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.004325/0.7194, allocations: 3.664 MB / 0.6099 GB, free: 97.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005721/0.7252, allocations: 3.697 MB / 0.6135 GB, free: 96.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/0.7252, allocations: 4 kB / 0.6135 GB, free: 96.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.7267, allocations: 1.144 MB / 0.6146 GB, free: 95.47 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.7288, allocations: 415.3 kB / 0.615 GB, free: 95.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03347/0.7623, allocations: 30.59 MB / 0.6449 GB, free: 68.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/0.7647, allocations: 2.746 MB / 0.6476 GB, free: 65.99 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00231/0.767, allocations: 1.213 MB / 0.6487 GB, free: 64.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/0.7684, allocations: 1.44 MB / 0.6501 GB, free: 63.33 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7684, allocations: 0 / 0.6501 GB, free: 63.33 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/0.8987, allocations: 46.75 MB / 0.6958 GB, free: 16.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/19.27, allocations: 15.94 kB / 0.6958 GB, free: 16.83 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/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)