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.001157/0.001157, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001573/0.001573, allocations: 187.4 kB / 16.25 MB, free: 6.629 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.338/1.338, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1556/0.1556, allocations: 9.104 MB / 299.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 59.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 51.43 MB / 413 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.1948/0.3069, allocations: 19.4 MB / 432.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008725/0.3156, allocations: 4.596 MB / 437 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003561/0.3192, allocations: 67.25 kB / 437 MB, free: 31.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009532/0.3202, allocations: 285 kB / 437.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002894/0.3232, allocations: 1.237 MB / 438.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.3236, allocations: 102.7 kB / 438.6 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002199/0.3258, allocations: 2.457 MB / 441.1 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008819/0.3267, allocations: 0.814 MB / 441.9 MB, free: 29.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008978/0.3276, allocations: 0.8633 MB / 442.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.3287, allocations: 1.363 MB / 444.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003151/0.3291, allocations: 226.7 kB / 444.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.3302, allocations: 0.8185 MB / 445.2 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007793/0.331, allocations: 1.213 MB / 446.4 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.3321, allocations: 1.558 MB / 447.9 MB, free: 26.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003966/0.336, allocations: 4.731 MB / 452.7 MB, free: 24.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3361, allocations: 7.094 kB / 452.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3361, allocations: 3.938 kB / 452.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001179/0.3362, allocations: 0 / 452.7 MB, free: 24.91 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006339/0.3425, allocations: 3.254 MB / 455.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3426, allocations: 9.656 kB / 456 MB, free: 22.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006668/0.3433, allocations: 0.5431 MB / 456.5 MB, free: 22.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006247/0.3495, allocations: 1.761 MB / 458.3 MB, free: 22.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/0.3525, allocations: 1.295 MB / 459.6 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.499e-05/0.3527, allocations: 140.1 kB / 459.7 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004731/0.3531, allocations: 194.9 kB / 459.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01119/0.3643, allocations: 8.058 MB / 467.9 MB, free: 17.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.189e-05/0.3644, allocations: 23.09 kB / 468 MB, free: 17.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002814/0.3647, allocations: 89.23 kB / 468 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003252/0.368, allocations: 2.006 MB / 470.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.3825, allocations: 7.134 MB / 477.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03259/0.4151, allocations: 24.14 MB / 0.4896 GB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004554/0.4197, allocations: 2.158 MB / 0.4917 GB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.4209, allocations: 0.7296 MB / 0.4924 GB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005491/0.4264, allocations: 3.987 MB / 0.4963 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.4265, allocations: 39.56 kB / 0.4963 GB, free: 4.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.947e-06/0.4265, allocations: 0 / 0.4963 GB, free: 4.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009419/0.4359, allocations: 4.377 MB / 0.5006 GB, free: 15.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.436, allocations: 60.41 kB / 0.5007 GB, free: 15.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003298/0.4393, allocations: 2.577 MB / 0.5032 GB, free: 13.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.645e-05/0.4394, allocations: 49.55 kB / 0.5032 GB, free: 12.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.4406, allocations: 2.115 MB / 0.5053 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.441, allocations: 462.1 kB / 0.5057 GB, free: 10.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009056/0.442, allocations: 0.75 MB / 0.5065 GB, free: 9.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.029e-05/0.4421, allocations: 305.1 kB / 0.5068 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.4438, allocations: 1.163 MB / 0.5079 GB, free: 8.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002977/0.4468, allocations: 3.324 MB / 0.5111 GB, free: 3.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005129/0.4519, allocations: 4.785 MB / 0.5158 GB, free: 13.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.26e-05/0.452, allocations: 23.94 kB / 0.5158 GB, free: 13.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006987/0.459, allocations: 4.433 MB / 0.5202 GB, free: 9.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.547e-05/0.4591, allocations: 40 kB / 0.5202 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.747e-05/0.4591, allocations: 76 kB / 0.5203 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.637e-05/0.4592, allocations: 100 kB / 0.5204 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/0.4618, allocations: 0.8383 MB / 0.5212 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001056/0.4619, allocations: 151.4 kB / 0.5213 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002272/0.4642, allocations: 188.2 kB / 0.5215 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/0.4645, allocations: 224 kB / 0.5217 GB, free: 7.848 MB / 398.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.002393/0.4669, allocations: 1.569 MB / 0.5233 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003347/0.4672, allocations: 205.4 kB / 0.5235 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.4697, allocations: 1.41 MB / 0.5248 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001326/0.4698, allocations: 27.97 kB / 0.5249 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4699, allocations: 64 / 0.5249 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.4699, allocations: 7.984 kB / 0.5249 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007605/0.4775, allocations: 4.789 MB / 0.5295 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.4775, allocations: 8 kB / 0.5295 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007913/0.4783, allocations: 175.8 kB / 0.5297 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/0.4784, allocations: 12.67 kB / 0.5297 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-05/0.4784, allocations: 39.97 kB / 0.5298 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.4785, allocations: 15.92 kB / 0.5298 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.4785, allocations: 7.938 kB / 0.5298 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.4816, allocations: 2.358 MB / 0.5321 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/0.4823, allocations: 286.5 kB / 0.5324 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002864/0.4826, allocations: 27.98 kB / 0.5324 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007499/0.4833, allocations: 43.95 kB / 0.5324 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.4835, allocations: 80.38 kB / 0.5325 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.4836, allocations: 47.92 kB / 0.5326 GB, free: 12.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002422/0.486, allocations: 1.655 MB / 0.5342 GB, free: 10.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.486, allocations: 0 / 0.5342 GB, free: 10.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002775/0.4888, allocations: 0.6227 MB / 0.5348 GB, free: 10.2 MB / 414.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.003859/0.4926, allocations: 2.998 MB / 0.5377 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005505/0.4982, allocations: 3.256 MB / 0.5409 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.4982, allocations: 0 / 0.5409 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009222/0.4991, allocations: 0.6377 MB / 0.5415 GB, free: 3.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.5012, allocations: 382.3 kB / 0.5419 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04367/0.5449, allocations: 29.55 MB / 0.5707 GB, free: 1.508 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002692/0.5476, allocations: 2.559 MB / 0.5732 GB, free: 14.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002806/0.5505, allocations: 1.121 MB / 0.5743 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001679/0.5522, allocations: 1.245 MB / 0.5755 GB, free: 12.55 MB / 462.1 MB Notification: Performance of SimCode: time 2.184e-06/0.5522, allocations: 0 / 0.5755 GB, free: 12.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2542/0.8063, allocations: 42.94 MB / 0.6175 GB, free: 138.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.8066, allocations: 193.2 kB / 0.6177 GB, free: 138.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.729, allocations: 1.094 kB / 0.6177 GB, free: 138.6 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)