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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.000774/0.0007737, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0008435/0.0008435, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1717/0.1717, allocations: 9.109 MB / 300.2 MB, free: 2.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003043, allocations: 8 kB / 363.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09528, allocations: 52.43 MB / 415.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.1926/0.2879, allocations: 25.5 MB / 441.1 MB, free: 29.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2981, allocations: 5.949 MB / 447.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002936/0.301, allocations: 100.8 kB / 447.2 MB, free: 25.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.3029, allocations: 1.214 MB / 448.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007734/0.3107, allocations: 4.275 MB / 452.7 MB, free: 23.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.3115, allocations: 144.6 kB / 452.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002733/0.3142, allocations: 3.011 MB / 455.8 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009204/0.3151, allocations: 0.8609 MB / 456.7 MB, free: 21.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008005/0.3159, allocations: 0.8591 MB / 457.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.3173, allocations: 1.387 MB / 458.9 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002299/0.3176, allocations: 141.8 kB / 459.1 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.3187, allocations: 0.6751 MB / 459.7 MB, free: 20.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007861/0.3195, allocations: 1.205 MB / 460.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.3199, allocations: 0.6977 MB / 461.6 MB, free: 19.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002739/0.3227, allocations: 3.933 MB / 465.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3227, allocations: 0 / 465.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3227, allocations: 3.312 kB / 465.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.432e-05/0.3228, allocations: 0 / 465.6 MB, free: 19.06 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.004565/0.3273, allocations: 2.962 MB / 468.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3274, allocations: 13.7 kB / 468.6 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006119/0.328, allocations: 0.5916 MB / 469.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006273/0.3343, allocations: 1.883 MB / 471 MB, free: 16.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.3364, allocations: 1.407 MB / 472.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.3365, allocations: 160.8 kB / 472.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003523/0.3369, allocations: 211.1 kB / 472.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/0.3476, allocations: 8.663 MB / 481.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.564e-05/0.3477, allocations: 19.67 kB / 481.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002485/0.348, allocations: 106.1 kB / 481.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002983/0.351, allocations: 2.088 MB / 483.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.3624, allocations: 7.479 MB / 491.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03149/0.3939, allocations: 27.08 MB / 0.5061 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004265/0.3982, allocations: 2.179 MB / 0.5082 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3996, allocations: 0.9394 MB / 0.5091 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008281/0.4079, allocations: 5.566 MB / 0.5146 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.408, allocations: 51.52 kB / 0.5146 GB, free: 3.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.018e-06/0.408, allocations: 0 / 0.5146 GB, free: 3.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01311/0.4211, allocations: 6.975 MB / 0.5214 GB, free: 11.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.4212, allocations: 60.41 kB / 0.5215 GB, free: 11.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/0.4252, allocations: 2.924 MB / 0.5243 GB, free: 8.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.4254, allocations: 45.7 kB / 0.5244 GB, free: 8.836 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.4269, allocations: 2.36 MB / 0.5267 GB, free: 6.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/0.4274, allocations: 0.509 MB / 0.5272 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.4276, allocations: 87.98 kB / 0.5273 GB, free: 5.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.4279, allocations: 487.3 kB / 0.5277 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.43, allocations: 1.336 MB / 0.529 GB, free: 4.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003355/0.4333, allocations: 3.78 MB / 0.5327 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/0.4362, allocations: 2.218 MB / 0.5349 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-05/0.4363, allocations: 28 kB / 0.5349 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.007649/0.4439, allocations: 5.571 MB / 0.5404 GB, free: 7.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.441e-05/0.444, allocations: 49.66 kB / 0.5404 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.369e-05/0.4441, allocations: 84 kB / 0.5405 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007256/0.4448, allocations: 393.5 kB / 0.5409 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.4474, allocations: 0.9163 MB / 0.5418 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006127/0.4535, allocations: 8.246 MB / 0.5498 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/0.4564, allocations: 219.9 kB / 0.55 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004663/0.4569, allocations: 260.1 kB / 0.5503 GB, free: 12.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 12,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002914/0.4598, allocations: 1.706 MB / 0.5519 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003775/0.4602, allocations: 232.9 kB / 0.5522 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003473/0.4637, allocations: 2.255 MB / 0.5544 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000161/0.4639, allocations: 39.95 kB / 0.5544 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4639, allocations: 4 kB / 0.5544 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.4639, allocations: 3.984 kB / 0.5544 GB, free: 7.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009773/0.4737, allocations: 5.777 MB / 0.5601 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.4737, allocations: 4 kB / 0.5601 GB, free: 1.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.4744, allocations: 176 kB / 0.5602 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004341/0.4749, allocations: 170.7 kB / 0.5604 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-05/0.4749, allocations: 24 kB / 0.5604 GB, free: 1.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003386/0.4783, allocations: 4.686 MB / 0.565 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4784, allocations: 4 kB / 0.565 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003977/0.4823, allocations: 3 MB / 0.5679 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006592/0.483, allocations: 333.9 kB / 0.5682 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.4833, allocations: 23.98 kB / 0.5683 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007397/0.484, allocations: 55.94 kB / 0.5683 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.4841, allocations: 88.92 kB / 0.5684 GB, free: 8.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.4842, allocations: 43.98 kB / 0.5684 GB, free: 8.848 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002523/0.4868, allocations: 1.859 MB / 0.5703 GB, free: 6.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4868, allocations: 0 / 0.5703 GB, free: 6.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003139/0.4899, allocations: 0.7189 MB / 0.571 GB, free: 6.262 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004195/0.4941, allocations: 3.642 MB / 0.5745 GB, free: 2.504 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1809/0.675, allocations: 3.658 MB / 0.5781 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.6751, allocations: 3.906 kB / 0.5781 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.6767, allocations: 1.135 MB / 0.5792 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.679, allocations: 384.5 kB / 0.5796 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03022/0.7092, allocations: 22.81 MB / 0.6018 GB, free: 94.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/0.7115, allocations: 2.748 MB / 0.6045 GB, free: 93.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002751/0.7143, allocations: 1.215 MB / 0.6057 GB, free: 93.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/0.7159, allocations: 1.443 MB / 0.6071 GB, free: 93.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7159, allocations: 4 kB / 0.6071 GB, free: 93.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07168/0.7876, allocations: 55.28 MB / 0.6611 GB, free: 57.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.7878, allocations: 188 kB / 0.6613 GB, free: 56.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.566, allocations: 4 kB / 0.6613 GB, free: 56.84 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/linux/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) Environment - environmentSimulation: