Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.00546/0.00546, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001489/0.001489, allocations: 188.6 kB / 16.67 MB, free: 5.969 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: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.15/0.15, allocations: 9.111 MB / 299.6 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.91 kB / 414.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2469, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.00737/0.2543, allocations: 8.186 MB / 473.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004634/0.259, allocations: 2.511 MB / 476.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009995/0.26, allocations: 32.84 kB / 476.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008446/0.2608, allocations: 355.2 kB / 476.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.2636, allocations: 1.325 MB / 478 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.264, allocations: 108.5 kB / 478.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.2664, allocations: 2.449 MB / 480.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009037/0.2673, allocations: 0.8042 MB / 481.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.2685, allocations: 0.8615 MB / 482.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.2698, allocations: 1.26 MB / 483.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003753/0.2702, allocations: 223.1 kB / 483.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.2717, allocations: 0.8075 MB / 484.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008997/0.2726, allocations: 1.209 MB / 485.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.2737, allocations: 1.543 MB / 487.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004292/0.278, allocations: 4.957 MB / 492.2 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.278, allocations: 0 / 492.2 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.278, allocations: 0 / 492.2 MB, free: 444 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.448e-05/0.2781, allocations: 4.922 kB / 492.2 MB, free: 440 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006736/0.2849, allocations: 3.254 MB / 495.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.2849, allocations: 9.406 kB / 495.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007556/0.2857, allocations: 0.5405 MB / 496 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006218/0.2919, allocations: 1.767 MB / 497.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/0.2942, allocations: 1.31 MB / 499.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.2944, allocations: 139.8 kB / 499.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003692/0.2947, allocations: 188.2 kB / 499.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.3054, allocations: 8.061 MB / 0.4956 GB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.413e-05/0.3055, allocations: 23.78 kB / 0.4956 GB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002636/0.3058, allocations: 87.86 kB / 0.4957 GB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003116/0.3089, allocations: 2.004 MB / 0.4976 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.3217, allocations: 7.133 MB / 0.5046 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03656/0.3583, allocations: 24.06 MB / 0.5281 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005007/0.3633, allocations: 2.148 MB / 0.5302 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.3647, allocations: 0.7236 MB / 0.5309 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007448/0.3722, allocations: 3.984 MB / 0.5348 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3722, allocations: 43.56 kB / 0.5348 GB, free: 8.566 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.458e-06/0.3722, allocations: 0 / 0.5348 GB, free: 8.566 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.009868/0.3821, allocations: 4.377 MB / 0.5391 GB, free: 4.129 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.3822, allocations: 60.41 kB / 0.5392 GB, free: 4.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004031/0.3862, allocations: 2.577 MB / 0.5417 GB, free: 1.449 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.816e-05/0.3863, allocations: 37.7 kB / 0.5417 GB, free: 1.406 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.3877, allocations: 2.119 MB / 0.5438 GB, free: 15.25 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004131/0.3882, allocations: 462.1 kB / 0.5442 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/0.3894, allocations: 0.7539 MB / 0.545 GB, free: 14.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3896, allocations: 309 kB / 0.5452 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.3917, allocations: 1.163 MB / 0.5464 GB, free: 12.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00335/0.395, allocations: 3.32 MB / 0.5496 GB, free: 8.188 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00526/0.4003, allocations: 4.797 MB / 0.5543 GB, free: 2.332 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.516e-05/0.4004, allocations: 31.94 kB / 0.5543 GB, free: 2.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007575/0.408, allocations: 4.413 MB / 0.5587 GB, free: 13.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/0.4081, allocations: 40 kB / 0.5587 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.4082, allocations: 72.84 kB / 0.5588 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001132/0.4083, allocations: 104 kB / 0.5589 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002562/0.4109, allocations: 0.8461 MB / 0.5597 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001336/0.411, allocations: 147.4 kB / 0.5598 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/0.4135, allocations: 175.9 kB / 0.56 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003526/0.4138, allocations: 228 kB / 0.5602 GB, free: 12.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002514/0.4164, allocations: 1.583 MB / 0.5618 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4167, allocations: 209.3 kB / 0.562 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.4191, allocations: 1.41 MB / 0.5633 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/0.4193, allocations: 23.98 kB / 0.5634 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4193, allocations: 3.938 kB / 0.5634 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4193, allocations: 3.984 kB / 0.5634 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009534/0.4288, allocations: 4.789 MB / 0.568 GB, free: 4.105 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.4289, allocations: 4 kB / 0.568 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008152/0.4297, allocations: 187.7 kB / 0.5682 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.555e-05/0.4297, allocations: 8.969 kB / 0.5682 GB, free: 3.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.978e-05/0.4298, allocations: 27.98 kB / 0.5683 GB, free: 3.883 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.28e-05/0.4299, allocations: 16 kB / 0.5683 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.4299, allocations: 11.88 kB / 0.5683 GB, free: 3.855 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.4332, allocations: 2.359 MB / 0.5706 GB, free: 1.406 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006431/0.4338, allocations: 294.5 kB / 0.5709 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004663/0.4343, allocations: 20 kB / 0.5709 GB, free: 1.078 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009773/0.4353, allocations: 51.89 kB / 0.5709 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4354, allocations: 76.58 kB / 0.571 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.394e-05/0.4355, allocations: 47.98 kB / 0.5711 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.4385, allocations: 1.655 MB / 0.5727 GB, free: 15.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4385, allocations: 0 / 0.5727 GB, free: 15.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003416/0.442, allocations: 0.6172 MB / 0.5733 GB, free: 14.62 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004094/0.4461, allocations: 3.002 MB / 0.5762 GB, free: 11.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004487/0.4506, allocations: 2.626 MB / 0.5788 GB, free: 8.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.4506, allocations: 3.938 kB / 0.5788 GB, free: 8.906 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000912/0.4515, allocations: 0.6338 MB / 0.5794 GB, free: 8.277 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.4539, allocations: 379.4 kB / 0.5798 GB, free: 7.914 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2374/0.6913, allocations: 26.14 MB / 0.6053 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002514/0.6938, allocations: 2.56 MB / 0.6078 GB, free: 101.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002319/0.6962, allocations: 1.11 MB / 0.6089 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/0.6975, allocations: 1.247 MB / 0.6101 GB, free: 100.8 MB / 462.1 MB Notification: Performance of SimCode: time 9.41e-07/0.6975, allocations: 0 / 0.6101 GB, free: 100.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06399/0.7615, allocations: 42.69 MB / 0.6518 GB, free: 65.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.73, allocations: 7.922 kB / 0.6518 GB, free: 65.83 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)