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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009113/0.0009113, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.5 MB / 229.6 MB, free: 3.184 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008881/0.0008881, allocations: 91.11 kB / 280.5 MB, free: 1.145 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04072/0.04072, allocations: 8.834 MB / 340.1 MB, free: 5.598 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.626e-05/1.629e-05, allocations: 0 / 398.8 MB, free: 66.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 52.39 MB / 451.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.375/0.4779, allocations: 88.18 MB / 0.5267 GB, free: 4.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.4782, allocations: 75.33 kB / 0.5268 GB, free: 4.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1516/0.6298, allocations: 60.75 MB / 0.5861 GB, free: 15.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6298, allocations: 0 / 0.5861 GB, free: 15.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001004/0.6299, allocations: 48 kB / 0.5861 GB, free: 14.99 MB / 410.7 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.01039/0.6403, allocations: 2.736 MB / 0.5888 GB, free: 12.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.6404, allocations: 16 kB / 0.5888 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.6505, allocations: 1.961 MB / 0.5908 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005019/0.6556, allocations: 1.671 MB / 0.5924 GB, free: 8.492 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.6558, allocations: 96 kB / 0.5925 GB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.6574, allocations: 175.9 kB / 0.5926 GB, free: 8.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01007/0.6675, allocations: 5.345 MB / 0.5979 GB, free: 2.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01688/0.6844, allocations: 6.995 MB / 0.6047 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.6846, allocations: 23.72 kB / 0.6047 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005703/0.6852, allocations: 16 kB / 0.6047 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001425/0.6866, allocations: 0.8765 MB / 0.6056 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03875/0.7254, allocations: 23.29 MB / 0.6283 GB, free: 2.773 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.728, allocations: 1.921 MB / 0.6302 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008618/0.7289, allocations: 0.642 MB / 0.6308 GB, free: 76 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00549/0.7344, allocations: 3.544 MB / 0.6343 GB, free: 12.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.7344, allocations: 39.34 kB / 0.6343 GB, free: 12.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=111): time 3.006e-06/0.7344, allocations: 3.938 kB / 0.6343 GB, free: 12.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=114): time 0.006367/0.7408, allocations: 3.347 MB / 0.6376 GB, free: 8.781 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.7409, allocations: 64.19 kB / 0.6377 GB, free: 8.707 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.7436, allocations: 1.918 MB / 0.6395 GB, free: 6.793 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.7436, allocations: 25.7 kB / 0.6396 GB, free: 6.762 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.7449, allocations: 2.184 MB / 0.6417 GB, free: 4.543 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/0.7453, allocations: 446.1 kB / 0.6421 GB, free: 4.102 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.7454, allocations: 0 / 0.6421 GB, free: 4.102 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002984/0.7457, allocations: 0.5033 MB / 0.6426 GB, free: 3.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/0.7473, allocations: 1.109 MB / 0.6437 GB, free: 2.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2901/1.037, allocations: 3.361 MB / 0.647 GB, free: 125.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004476/1.042, allocations: 1.959 MB / 0.6489 GB, free: 125.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/1.042, allocations: 25.38 kB / 0.6489 GB, free: 125.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=510) (initialization): time 0.009837/1.052, allocations: 4.02 MB / 0.6528 GB, free: 125.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001651/1.052, allocations: 39.88 kB / 0.6529 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002844/1.052, allocations: 83.09 kB / 0.653 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/1.053, allocations: 119 kB / 0.6531 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003386/1.056, allocations: 0.8894 MB / 0.6539 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001834/1.056, allocations: 161 kB / 0.6541 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003068/1.059, allocations: 111.5 kB / 0.6542 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000894/1.06, allocations: 243.5 kB / 0.6544 GB, free: 125.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 368 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (482): * Single equations (assignments): 477 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001025/1.061, allocations: 308.9 kB / 0.6547 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002931/1.064, allocations: 1.139 MB / 0.6558 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/1.065, allocations: 181.2 kB / 0.656 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/1.067, allocations: 1.228 MB / 0.6572 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001547/1.067, allocations: 26.97 kB / 0.6572 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/1.067, allocations: 0 / 0.6572 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/1.067, allocations: 5.438 kB / 0.6572 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007982/1.075, allocations: 3.636 MB / 0.6608 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/1.075, allocations: 5 kB / 0.6608 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008926/1.076, allocations: 172.7 kB / 0.661 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.203e-05/1.076, allocations: 9.375 kB / 0.661 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.156e-05/1.077, allocations: 21.34 kB / 0.661 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-05/1.077, allocations: 18.06 kB / 0.661 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/1.077, allocations: 4.594 kB / 0.661 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003039/1.08, allocations: 2.428 MB / 0.6634 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/1.08, allocations: 272.6 kB / 0.6636 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/1.08, allocations: 12.03 kB / 0.6637 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/1.081, allocations: 36.06 kB / 0.6637 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/1.081, allocations: 70.33 kB / 0.6638 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.438e-05/1.081, allocations: 40.73 kB / 0.6638 GB, free: 123.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001738/1.083, allocations: 1.273 MB / 0.665 GB, free: 123.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.083, allocations: 3.812 kB / 0.665 GB, free: 123.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003658/1.087, allocations: 0.5533 MB / 0.6656 GB, free: 123.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003632/1.09, allocations: 4.274 MB / 0.6698 GB, free: 120.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004055/1.094, allocations: 2.433 MB / 0.6721 GB, free: 120.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.094, allocations: 0 / 0.6721 GB, free: 120.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006213/1.095, allocations: 0.5697 MB / 0.6727 GB, free: 120.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/1.096, allocations: 206.9 kB / 0.6729 GB, free: 120.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/1.109, allocations: 6.019 MB / 0.6788 GB, free: 118.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/1.111, allocations: 2.61 MB / 0.6813 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002727/1.114, allocations: 1.118 MB / 0.6824 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/1.115, allocations: 1.25 MB / 0.6836 GB, free: 116.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.272e-06/1.115, allocations: 0 / 0.6836 GB, free: 116.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06797/1.183, allocations: 42.43 MB / 0.7251 GB, free: 94.23 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/1.183, allocations: 139.4 kB / 0.7252 GB, free: 94.03 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.899/4.083, allocations: 0 / 0.7252 GB, free: 94.03 MB / 458.7 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/linux/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)