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.0009022/0.0009026, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004587/0.004587, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.209/1.209, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1422/0.1422, allocations: 9.103 MB / 300.5 MB, free: 2.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 12 kB / 363.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08503/0.08532, allocations: 52.44 MB / 416.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.17/0.2554, allocations: 27.37 MB / 443.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008986/0.2644, allocations: 6.184 MB / 449.8 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.2664, allocations: 101.9 kB / 449.9 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000591/0.267, allocations: 334.5 kB / 450.2 MB, free: 23.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001869/0.2689, allocations: 1.328 MB / 451.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.2692, allocations: 140.3 kB / 451.7 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002227/0.2714, allocations: 3.784 MB / 455.5 MB, free: 21.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007249/0.2722, allocations: 0.8659 MB / 456.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005727/0.2728, allocations: 0.8154 MB / 457.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.2739, allocations: 1.394 MB / 458.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001976/0.2741, allocations: 145.8 kB / 458.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009099/0.275, allocations: 0.7701 MB / 459.4 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006714/0.2757, allocations: 1.261 MB / 460.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000843/0.2765, allocations: 1.64 MB / 462.4 MB, free: 18.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002628/0.2792, allocations: 4.839 MB / 467.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2792, allocations: 0 / 467.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2792, allocations: 0 / 467.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.594e-05/0.2792, allocations: 0 / 467.2 MB, free: 17.29 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.003917/0.2831, allocations: 2.924 MB / 470.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2832, allocations: 9.75 kB / 470.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005005/0.2837, allocations: 0.5993 MB / 470.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006582/0.2903, allocations: 1.883 MB / 472.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2922, allocations: 1.432 MB / 474 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.2923, allocations: 161 kB / 474.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000387/0.2927, allocations: 220.6 kB / 474.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.3028, allocations: 8.669 MB / 483.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.247e-05/0.3029, allocations: 28.8 kB / 483.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000253/0.3031, allocations: 98.47 kB / 483.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/0.3063, allocations: 2.089 MB / 485.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/0.317, allocations: 7.51 MB / 492.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02725/0.3442, allocations: 27.09 MB / 0.5077 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003975/0.3482, allocations: 2.179 MB / 0.5098 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.3497, allocations: 0.9466 MB / 0.5108 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007529/0.3572, allocations: 5.569 MB / 0.5162 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3573, allocations: 43.56 kB / 0.5162 GB, free: 1.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 2.574e-06/0.3573, allocations: 4 kB / 0.5162 GB, free: 1.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01208/0.3693, allocations: 6.99 MB / 0.5231 GB, free: 10.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.3694, allocations: 64.34 kB / 0.5231 GB, free: 10.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003353/0.3728, allocations: 2.936 MB / 0.526 GB, free: 7.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.3728, allocations: 45.7 kB / 0.526 GB, free: 7.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.3741, allocations: 2.36 MB / 0.5284 GB, free: 4.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.3745, allocations: 0.5168 MB / 0.5289 GB, free: 4.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003806/0.3749, allocations: 355 kB / 0.5292 GB, free: 4.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.72e-05/0.375, allocations: 301.1 kB / 0.5295 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.377, allocations: 1.351 MB / 0.5308 GB, free: 2.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003334/0.3803, allocations: 3.799 MB / 0.5345 GB, free: 13.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/0.3858, allocations: 5.492 MB / 0.5399 GB, free: 6.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.173e-05/0.3858, allocations: 24 kB / 0.5399 GB, free: 6.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.007601/0.3934, allocations: 5.623 MB / 0.5454 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.3935, allocations: 43.94 kB / 0.5454 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.412e-05/0.3936, allocations: 88 kB / 0.5455 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007217/0.3943, allocations: 376.6 kB / 0.5459 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/0.3968, allocations: 0.9202 MB / 0.5468 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006182/0.403, allocations: 8.24 MB / 0.5548 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/0.4053, allocations: 231.8 kB / 0.555 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/0.4056, allocations: 252 kB / 0.5553 GB, free: 6.098 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.002154/0.4077, allocations: 1.702 MB / 0.5569 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.408, allocations: 236.9 kB / 0.5572 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003106/0.4111, allocations: 2.263 MB / 0.5594 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001709/0.4113, allocations: 35.97 kB / 0.5594 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4113, allocations: 4 kB / 0.5594 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4113, allocations: 7.969 kB / 0.5594 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007856/0.4192, allocations: 5.773 MB / 0.5651 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.4192, allocations: 7.938 kB / 0.5651 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006701/0.4199, allocations: 183.7 kB / 0.5652 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004042/0.4203, allocations: 158.9 kB / 0.5654 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.63e-05/0.4204, allocations: 35.97 kB / 0.5654 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.4236, allocations: 4.686 MB / 0.57 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4236, allocations: 7.938 kB / 0.57 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003689/0.4273, allocations: 3.008 MB / 0.573 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004189/0.4278, allocations: 333.9 kB / 0.5733 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/0.428, allocations: 23.98 kB / 0.5733 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.4288, allocations: 55.94 kB / 0.5733 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.4289, allocations: 88.83 kB / 0.5734 GB, free: 2.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.429, allocations: 40 kB / 0.5735 GB, free: 2.664 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002281/0.4313, allocations: 1.878 MB / 0.5753 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4313, allocations: 0 / 0.5753 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00277/0.4341, allocations: 0.7265 MB / 0.576 GB, free: 52 kB / 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.1566/0.5907, allocations: 3.651 MB / 0.5796 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004544/0.5952, allocations: 3.687 MB / 0.5832 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.5953, allocations: 0 / 0.5832 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.5965, allocations: 1.147 MB / 0.5843 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.5993, allocations: 381.5 kB / 0.5847 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03641/0.6357, allocations: 34.85 MB / 0.6187 GB, free: 94.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/0.6384, allocations: 2.749 MB / 0.6214 GB, free: 92.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002801/0.6412, allocations: 1.217 MB / 0.6226 GB, free: 92.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.6426, allocations: 1.439 MB / 0.624 GB, free: 91.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6426, allocations: 4 kB / 0.624 GB, free: 91.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05701/0.6996, allocations: 48.28 MB / 0.6711 GB, free: 58.04 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.6998, allocations: 206.3 kB / 0.6713 GB, free: 57.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.391, allocations: 0 / 0.6713 GB, free: 57.78 MB / 446.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)