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.001527/0.001527, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2023/0.2023, allocations: 9.098 MB / 299.5 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 67.89 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1148, allocations: 51.43 MB / 413.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2156/0.3305, allocations: 13.81 MB / 427.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007487/0.338, allocations: 4.013 MB / 431.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.3403, allocations: 55.16 kB / 431.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000951/0.3413, allocations: 385.2 kB / 431.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002441/0.3438, allocations: 0.9109 MB / 432.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001497/0.3453, allocations: 0.9676 MB / 433.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.3473, allocations: 2.206 MB / 435.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.3496, allocations: 2.772 MB / 438.6 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008917/0.3506, allocations: 1.014 MB / 439.6 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.3517, allocations: 1.235 MB / 440.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003396/0.352, allocations: 310.4 kB / 441.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.3531, allocations: 0.7115 MB / 441.8 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005908/0.3537, allocations: 0.9704 MB / 442.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.3548, allocations: 1.487 MB / 444.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003094/0.3579, allocations: 3.774 MB / 448.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3579, allocations: 0 / 448.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.358, allocations: 4 kB / 448.1 MB, free: 27.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.74e-05/0.358, allocations: 0 / 448.1 MB, free: 27.81 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.009283/0.3673, allocations: 4.166 MB / 452.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3674, allocations: 9.656 kB / 452.3 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004346/0.3678, allocations: 452.5 kB / 452.7 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004681/0.3683, allocations: 294.5 kB / 453 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.3697, allocations: 1.129 MB / 454.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.3698, allocations: 221.3 kB / 454.3 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/0.3702, allocations: 293.9 kB / 454.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006869/0.3771, allocations: 4.729 MB / 459.3 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.696e-05/0.3772, allocations: 39.47 kB / 459.4 MB, free: 22.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.3774, allocations: 129.9 kB / 459.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004823/0.3779, allocations: 435.9 kB / 459.9 MB, free: 21.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006488/0.3844, allocations: 3.37 MB / 463.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02774/0.4122, allocations: 21.64 MB / 484.9 MB, free: 20.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005841/0.4181, allocations: 1.923 MB / 486.9 MB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.4195, allocations: 0.6901 MB / 487.6 MB, free: 19.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009168/0.4287, allocations: 5.548 MB / 493.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.4288, allocations: 46.03 kB / 493.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 3.126e-06/0.4288, allocations: 0 / 493.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0237/0.4525, allocations: 9.554 MB / 0.4909 GB, free: 9.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.4526, allocations: 76.64 kB / 0.491 GB, free: 9.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.4555, allocations: 1.806 MB / 0.4928 GB, free: 7.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.4557, allocations: 49.7 kB / 0.4928 GB, free: 7.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.457, allocations: 1.728 MB / 0.4945 GB, free: 5.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005079/0.4575, allocations: 0.5243 MB / 0.495 GB, free: 5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001162/0.4587, allocations: 0.7463 MB / 0.4957 GB, free: 4.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.4589, allocations: 365.7 kB / 0.4961 GB, free: 3.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001949/0.4608, allocations: 1.229 MB / 0.4973 GB, free: 2.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/0.4643, allocations: 3.402 MB / 0.5006 GB, free: 14.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006685/0.471, allocations: 5.12 MB / 0.5056 GB, free: 7.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.833e-05/0.4711, allocations: 24 kB / 0.5056 GB, free: 7.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01012/0.4813, allocations: 4.817 MB / 0.5103 GB, free: 3.109 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.116e-05/0.4814, allocations: 36 kB / 0.5104 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.4815, allocations: 80 kB / 0.5104 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009192/0.4824, allocations: 366.2 kB / 0.5108 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.4852, allocations: 0.8929 MB / 0.5117 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005292/0.4905, allocations: 4.306 MB / 0.5159 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002458/0.493, allocations: 219.7 kB / 0.5161 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004116/0.4935, allocations: 228 kB / 0.5163 GB, free: 12.86 MB / 398.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.00164/0.4951, allocations: 0.9203 MB / 0.5172 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003438/0.4955, allocations: 193.5 kB / 0.5174 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004155/0.4996, allocations: 2.595 MB / 0.5199 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.4996, allocations: 16 kB / 0.5199 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.4997, allocations: 7.938 kB / 0.5199 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.4997, allocations: 7.969 kB / 0.5199 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.5114, allocations: 6.489 MB / 0.5263 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.5114, allocations: 4 kB / 0.5263 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5125, allocations: 275.5 kB / 0.5265 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006859/0.5132, allocations: 261 kB / 0.5268 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.775e-05/0.5133, allocations: 24 kB / 0.5268 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003919/0.5172, allocations: 3.468 MB / 0.5302 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5172, allocations: 7.938 kB / 0.5302 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005169/0.5224, allocations: 3.896 MB / 0.534 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000541/0.523, allocations: 242.6 kB / 0.5342 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004429/0.5234, allocations: 35.98 kB / 0.5343 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009975/0.5244, allocations: 103.8 kB / 0.5344 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.5247, allocations: 92.81 kB / 0.5345 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.5248, allocations: 40 kB / 0.5345 GB, free: 9.824 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001877/0.5266, allocations: 1.085 MB / 0.5356 GB, free: 8.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.5267, allocations: 0 / 0.5356 GB, free: 8.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003303/0.53, allocations: 0.6405 MB / 0.5362 GB, free: 8.109 MB / 414.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.005982/0.536, allocations: 4.483 MB / 0.5406 GB, free: 3.539 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008507/0.5445, allocations: 4.308 MB / 0.5448 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/0.5446, allocations: 4.25 kB / 0.5448 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.5466, allocations: 1.279 MB / 0.546 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.5495, allocations: 447.5 kB / 0.5465 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03694/0.5865, allocations: 26.41 MB / 0.5723 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.5885, allocations: 1.837 MB / 0.574 GB, free: 13.19 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002201/0.5907, allocations: 0.8511 MB / 0.5749 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.5922, allocations: 1.058 MB / 0.5759 GB, free: 11.28 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5922, allocations: 0 / 0.5759 GB, free: 11.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3509/0.943, allocations: 44.74 MB / 0.6196 GB, free: 136.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.82, allocations: 13.55 kB / 0.6196 GB, free: 136.9 MB / 462.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)