Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.001318/0.001318, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001604/0.001604, allocations: 200.2 kB / 16.26 MB, free: 6.617 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1787/0.1787, allocations: 9.095 MB / 299.2 MB, free: 1.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 59.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1219, allocations: 51.43 MB / 413 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.206/0.3279, allocations: 36.18 MB / 449.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01756/0.3455, allocations: 8.148 MB / 457.3 MB, free: 16.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008114/0.3537, allocations: 132.5 kB / 457.4 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.3549, allocations: 309.6 kB / 457.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002857/0.3578, allocations: 0.7996 MB / 458.5 MB, free: 16.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.3594, allocations: 0.8974 MB / 459.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00261/0.362, allocations: 2.241 MB / 461.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002445/0.3645, allocations: 2.776 MB / 464.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009747/0.3655, allocations: 1.026 MB / 465.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.3666, allocations: 1.282 MB / 466.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003034/0.3669, allocations: 311.7 kB / 467 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.3679, allocations: 0.7145 MB / 467.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006498/0.3686, allocations: 0.9808 MB / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.3697, allocations: 1.494 MB / 470.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.3726, allocations: 3.802 MB / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.3726, allocations: 0 / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3726, allocations: 0.9688 kB / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.684e-05/0.3727, allocations: 0 / 474 MB, free: 9.012 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.0108/0.3835, allocations: 4.164 MB / 478.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.3836, allocations: 9 kB / 478.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005746/0.3842, allocations: 450.8 kB / 478.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007245/0.3849, allocations: 297.5 kB / 478.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001854/0.3868, allocations: 1.131 MB / 480.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001881/0.387, allocations: 223.1 kB / 480.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004142/0.3874, allocations: 287.3 kB / 480.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008132/0.3955, allocations: 4.733 MB / 485.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/0.3957, allocations: 40.88 kB / 485.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.3959, allocations: 128.4 kB / 485.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005621/0.3965, allocations: 429.3 kB / 485.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007491/0.404, allocations: 3.372 MB / 489.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02766/0.4317, allocations: 21.63 MB / 0.4989 GB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005546/0.4373, allocations: 1.935 MB / 0.5008 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.4386, allocations: 0.6893 MB / 0.5015 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008424/0.4471, allocations: 5.535 MB / 0.5069 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.4472, allocations: 51.55 kB / 0.5069 GB, free: 8.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.995e-06/0.4472, allocations: 3.938 kB / 0.5069 GB, free: 8.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02392/0.4711, allocations: 9.556 MB / 0.5163 GB, free: 15.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.4712, allocations: 68.72 kB / 0.5163 GB, free: 14.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.4739, allocations: 1.806 MB / 0.5181 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.4741, allocations: 49.7 kB / 0.5181 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.4753, allocations: 1.732 MB / 0.5198 GB, free: 11.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005565/0.4758, allocations: 0.5282 MB / 0.5203 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/0.4769, allocations: 0.7464 MB / 0.5211 GB, free: 10.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.4771, allocations: 357.9 kB / 0.5214 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.479, allocations: 1.225 MB / 0.5226 GB, free: 8.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/0.4824, allocations: 3.406 MB / 0.5259 GB, free: 3.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005708/0.4881, allocations: 5.12 MB / 0.5309 GB, free: 13.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.428e-05/0.4882, allocations: 24 kB / 0.531 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008133/0.4963, allocations: 4.817 MB / 0.5357 GB, free: 8.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.854e-05/0.4964, allocations: 36.94 kB / 0.5357 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/0.4965, allocations: 80 kB / 0.5358 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009285/0.4975, allocations: 361.9 kB / 0.5361 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002816/0.5003, allocations: 0.8968 MB / 0.537 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005516/0.5058, allocations: 4.304 MB / 0.5412 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002576/0.5084, allocations: 211.8 kB / 0.5414 GB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004881/0.5089, allocations: 232 kB / 0.5416 GB, free: 2.676 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001671/0.5106, allocations: 0.9275 MB / 0.5425 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003863/0.511, allocations: 193.5 kB / 0.5427 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/0.5154, allocations: 2.599 MB / 0.5453 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.5154, allocations: 19.94 kB / 0.5453 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-05/0.5155, allocations: 7.938 kB / 0.5453 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.5155, allocations: 7.969 kB / 0.5453 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.527, allocations: 6.485 MB / 0.5516 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.527, allocations: 4 kB / 0.5516 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.5281, allocations: 275.6 kB / 0.5519 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007486/0.5289, allocations: 261.1 kB / 0.5521 GB, free: 7.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.529, allocations: 31.98 kB / 0.5522 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00414/0.5332, allocations: 3.458 MB / 0.5555 GB, free: 4.129 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.5332, allocations: 4 kB / 0.5555 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/0.5385, allocations: 3.911 MB / 0.5594 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/0.5391, allocations: 239 kB / 0.5596 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004261/0.5396, allocations: 27.98 kB / 0.5596 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.5407, allocations: 103.8 kB / 0.5597 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.5409, allocations: 96.75 kB / 0.5598 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.909e-05/0.541, allocations: 44 kB / 0.5599 GB, free: 15.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001953/0.543, allocations: 1.085 MB / 0.5609 GB, free: 14.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.543, allocations: 3.938 kB / 0.5609 GB, free: 14.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003032/0.546, allocations: 0.6328 MB / 0.5615 GB, free: 13.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005734/0.5518, allocations: 4.486 MB / 0.5659 GB, free: 9.336 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007025/0.5588, allocations: 4.3 MB / 0.5701 GB, free: 5.043 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.5589, allocations: 0 / 0.5701 GB, free: 5.043 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.5607, allocations: 1.273 MB / 0.5714 GB, free: 3.754 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.5631, allocations: 448.2 kB / 0.5718 GB, free: 3.344 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1816/0.7447, allocations: 27.57 MB / 0.5987 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.746, allocations: 1.825 MB / 0.6005 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00203/0.748, allocations: 0.8589 MB / 0.6013 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.7492, allocations: 1.056 MB / 0.6024 GB, free: 110.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.853e-06/0.7493, allocations: 0 / 0.6024 GB, free: 110.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07479/0.8241, allocations: 44.68 MB / 0.646 GB, free: 90.38 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.8242, allocations: 216.2 kB / 0.6462 GB, free: 90.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.93/3.754, allocations: 2.344 kB / 0.6462 GB, free: 90.12 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)