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.001242/0.001242, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001358/0.001358, allocations: 191.1 kB / 16.14 MB, free: 6.707 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1561/0.1561, allocations: 9.096 MB / 299 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 361.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.08949, allocations: 51.44 MB / 412.8 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.1882/0.2777, allocations: 28.22 MB / 441 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.2895, allocations: 6.24 MB / 447.2 MB, free: 24.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004723/0.2942, allocations: 102.9 kB / 447.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.2954, allocations: 333.6 kB / 447.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.2986, allocations: 1.323 MB / 449 MB, free: 23.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005719/0.2992, allocations: 139.6 kB / 449.1 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.3026, allocations: 3.78 MB / 452.9 MB, free: 22.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.3039, allocations: 0.8805 MB / 453.8 MB, free: 21.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.3052, allocations: 0.8305 MB / 454.6 MB, free: 21.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.3072, allocations: 1.422 MB / 456 MB, free: 20.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006594/0.3079, allocations: 152.2 kB / 456.2 MB, free: 20.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.3097, allocations: 0.7735 MB / 457 MB, free: 20.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.3112, allocations: 1.253 MB / 458.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.3134, allocations: 1.626 MB / 459.8 MB, free: 19.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004219/0.3176, allocations: 4.952 MB / 464.8 MB, free: 17.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3176, allocations: 0 / 464.8 MB, free: 17.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3176, allocations: 3 kB / 464.8 MB, free: 17.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.549e-05/0.3177, allocations: 0 / 464.8 MB, free: 17.18 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.006032/0.3238, allocations: 3.609 MB / 468.4 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3238, allocations: 9.688 kB / 468.4 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005635/0.3244, allocations: 0.5996 MB / 469 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006752/0.3312, allocations: 1.833 MB / 470.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.3339, allocations: 1.432 MB / 472.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.3341, allocations: 165.1 kB / 472.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006765/0.3347, allocations: 219.3 kB / 472.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.3489, allocations: 8.668 MB / 481.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.3491, allocations: 21.75 kB / 481.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006676/0.3498, allocations: 101 kB / 481.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/0.3534, allocations: 2.088 MB / 483.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01624/0.3697, allocations: 7.504 MB / 491 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03949/0.4092, allocations: 27.07 MB / 0.506 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004877/0.4141, allocations: 2.18 MB / 0.5081 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001802/0.416, allocations: 0.9505 MB / 0.509 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009746/0.4257, allocations: 5.569 MB / 0.5145 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.4258, allocations: 47.44 kB / 0.5145 GB, free: 1.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 5.23e-06/0.4258, allocations: 0 / 0.5145 GB, free: 1.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.0145/0.4403, allocations: 6.987 MB / 0.5213 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.4404, allocations: 64.41 kB / 0.5214 GB, free: 9.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004895/0.4453, allocations: 2.94 MB / 0.5243 GB, free: 7.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.4454, allocations: 41.7 kB / 0.5243 GB, free: 6.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/0.447, allocations: 2.356 MB / 0.5266 GB, free: 4.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004705/0.4474, allocations: 0.5129 MB / 0.5271 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.4487, allocations: 0.853 MB / 0.5279 GB, free: 3.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.21e-05/0.4488, allocations: 301.1 kB / 0.5282 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/0.4511, allocations: 1.351 MB / 0.5295 GB, free: 1.531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003618/0.4547, allocations: 3.796 MB / 0.5333 GB, free: 12.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005973/0.4607, allocations: 5.49 MB / 0.5386 GB, free: 5.812 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.493e-05/0.4608, allocations: 24 kB / 0.5386 GB, free: 5.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.008824/0.4696, allocations: 5.619 MB / 0.5441 GB, free: 76 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.61e-05/0.4697, allocations: 46.59 kB / 0.5442 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/0.4698, allocations: 84.05 kB / 0.5442 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008199/0.4707, allocations: 380.8 kB / 0.5446 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/0.4734, allocations: 0.9162 MB / 0.5455 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006789/0.4802, allocations: 8.242 MB / 0.5536 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/0.4835, allocations: 220 kB / 0.5538 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006976/0.4843, allocations: 260 kB / 0.554 GB, free: 5.262 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.003391/0.4877, allocations: 1.701 MB / 0.5557 GB, free: 3.551 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004992/0.4882, allocations: 240.9 kB / 0.5559 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003845/0.492, allocations: 2.251 MB / 0.5581 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001863/0.4922, allocations: 39.95 kB / 0.5581 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/0.4923, allocations: 4.281 kB / 0.5581 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.4923, allocations: 3.984 kB / 0.5581 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.503, allocations: 5.789 MB / 0.5638 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.5031, allocations: 11.88 kB / 0.5638 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007281/0.5038, allocations: 179.7 kB / 0.564 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004696/0.5043, allocations: 162.9 kB / 0.5641 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.5044, allocations: 20 kB / 0.5642 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/0.508, allocations: 4.682 MB / 0.5687 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.508, allocations: 7.938 kB / 0.5687 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004203/0.5122, allocations: 3.004 MB / 0.5717 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006454/0.5129, allocations: 322.1 kB / 0.572 GB, free: 2.059 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004285/0.5133, allocations: 24.06 kB / 0.572 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009693/0.5143, allocations: 63.92 kB / 0.5721 GB, free: 1.973 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.5144, allocations: 76.78 kB / 0.5721 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/0.5145, allocations: 44.05 kB / 0.5722 GB, free: 1.855 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.1643/0.6788, allocations: 1.879 MB / 0.574 GB, free: 122.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.02e-07/0.6789, allocations: 0 / 0.574 GB, free: 122.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003897/0.6828, allocations: 0.7169 MB / 0.5747 GB, free: 122.8 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.003846/0.6866, allocations: 3.649 MB / 0.5783 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004642/0.6913, allocations: 3.681 MB / 0.5819 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6913, allocations: 3.094 kB / 0.5819 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6925, allocations: 1.133 MB / 0.583 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.6944, allocations: 379.7 kB / 0.5833 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03943/0.7338, allocations: 34.78 MB / 0.6173 GB, free: 95.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/0.7363, allocations: 2.749 MB / 0.62 GB, free: 93.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002784/0.7391, allocations: 1.22 MB / 0.6212 GB, free: 93.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/0.7405, allocations: 1.438 MB / 0.6226 GB, free: 92.57 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7405, allocations: 0.9375 kB / 0.6226 GB, free: 92.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0628/0.8033, allocations: 48.67 MB / 0.6701 GB, free: 58.31 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.8034, allocations: 211.7 kB / 0.6703 GB, free: 58.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/3.589, allocations: 3.938 kB / 0.6703 GB, free: 58.05 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)