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.0008766/0.0008766, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.005054/0.005055, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.217/1.217, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1384/0.1384, allocations: 9.106 MB / 300.5 MB, free: 2.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.0002871, allocations: 8 kB / 363.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08561/0.08591, allocations: 52.42 MB / 416.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.1748/0.2608, allocations: 35.14 MB / 451.4 MB, free: 21.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.2749, allocations: 8.138 MB / 459.5 MB, free: 16.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004879/0.2798, allocations: 130.2 kB / 459.6 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007576/0.2806, allocations: 313.6 kB / 459.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001888/0.2825, allocations: 0.7972 MB / 460.7 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.2837, allocations: 0.8964 MB / 461.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.2852, allocations: 2.448 MB / 464.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.287, allocations: 2.268 MB / 466.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004986/0.2875, allocations: 0.7512 MB / 467.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008117/0.2883, allocations: 1.027 MB / 468.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.2885, allocations: 128.3 kB / 468.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006747/0.2892, allocations: 0.5738 MB / 468.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004211/0.2896, allocations: 0.7579 MB / 469.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006463/0.2903, allocations: 1.261 MB / 470.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.2921, allocations: 3.53 MB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2921, allocations: 0 / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2921, allocations: 4 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.2921, allocations: 0 / 474.4 MB, free: 10.54 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.007217/0.2993, allocations: 3.612 MB / 478 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2994, allocations: 9.75 kB / 478 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004427/0.2998, allocations: 452 kB / 478.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000417/0.3003, allocations: 297.7 kB / 478.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.3016, allocations: 1.13 MB / 479.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.3017, allocations: 220.8 kB / 480.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003404/0.3021, allocations: 286.8 kB / 480.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006768/0.3089, allocations: 4.735 MB / 485.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.099e-05/0.309, allocations: 42.08 kB / 485.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000221/0.3092, allocations: 127.7 kB / 485.3 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005093/0.3097, allocations: 436.1 kB / 485.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006276/0.316, allocations: 3.369 MB / 489.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01975/0.3358, allocations: 21.64 MB / 0.4987 GB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004642/0.3404, allocations: 1.92 MB / 0.5006 GB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009811/0.3414, allocations: 0.6973 MB / 0.5013 GB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006381/0.3478, allocations: 5.547 MB / 0.5067 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3479, allocations: 43.56 kB / 0.5067 GB, free: 11.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.635e-06/0.3479, allocations: 0 / 0.5067 GB, free: 11.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02154/0.3694, allocations: 9.566 MB / 0.5161 GB, free: 1.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.3695, allocations: 72.66 kB / 0.5161 GB, free: 1.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002513/0.372, allocations: 1.81 MB / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.473e-05/0.3722, allocations: 45.7 kB / 0.518 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.3733, allocations: 1.736 MB / 0.5196 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/0.3737, allocations: 0.5282 MB / 0.5202 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.3741, allocations: 309.8 kB / 0.5205 GB, free: 12.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3743, allocations: 357.9 kB / 0.5208 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.3761, allocations: 1.229 MB / 0.522 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003194/0.3793, allocations: 3.402 MB / 0.5253 GB, free: 6.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005573/0.3849, allocations: 5.12 MB / 0.5303 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.961e-05/0.385, allocations: 20 kB / 0.5303 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007344/0.3923, allocations: 4.821 MB / 0.5351 GB, free: 11.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/0.3924, allocations: 40.78 kB / 0.5351 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-05/0.3925, allocations: 76 kB / 0.5352 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/0.3934, allocations: 364.6 kB / 0.5355 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/0.396, allocations: 0.8929 MB / 0.5364 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004927/0.4009, allocations: 3.964 MB / 0.5403 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/0.4031, allocations: 207.6 kB / 0.5405 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003174/0.4035, allocations: 228 kB / 0.5407 GB, free: 5.859 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.001468/0.4049, allocations: 0.9315 MB / 0.5416 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.4052, allocations: 185.7 kB / 0.5418 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004078/0.4093, allocations: 2.603 MB / 0.5443 GB, free: 2.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.4094, allocations: 12 kB / 0.5443 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4094, allocations: 4 kB / 0.5443 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.4094, allocations: 7.969 kB / 0.5443 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.42, allocations: 6.528 MB / 0.5507 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4201, allocations: 4 kB / 0.5507 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.4211, allocations: 275.5 kB / 0.551 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006655/0.4218, allocations: 252.6 kB / 0.5512 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.741e-05/0.4219, allocations: 27.94 kB / 0.5512 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/0.4256, allocations: 3.201 MB / 0.5544 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.4256, allocations: 7.938 kB / 0.5544 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/0.4306, allocations: 3.903 MB / 0.5582 GB, free: 3.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/0.4311, allocations: 246.7 kB / 0.5584 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/0.4314, allocations: 24 kB / 0.5584 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008909/0.4323, allocations: 111.8 kB / 0.5585 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.4325, allocations: 96.81 kB / 0.5586 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/0.4326, allocations: 36 kB / 0.5587 GB, free: 3.047 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001697/0.4343, allocations: 1.088 MB / 0.5597 GB, free: 1.969 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4343, allocations: 0 / 0.5597 GB, free: 1.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00248/0.4368, allocations: 0.6328 MB / 0.5603 GB, free: 1.336 MB / 430.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.005071/0.4419, allocations: 4.486 MB / 0.5647 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004523/0.4464, allocations: 3.303 MB / 0.568 GB, free: 9.465 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4464, allocations: 3.938 kB / 0.568 GB, free: 9.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.4479, allocations: 1.269 MB / 0.5692 GB, free: 8.184 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.4504, allocations: 411 kB / 0.5696 GB, free: 7.785 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1931/0.6435, allocations: 27.65 MB / 0.5966 GB, free: 86.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.6447, allocations: 1.825 MB / 0.5984 GB, free: 85.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00186/0.6465, allocations: 0.8607 MB / 0.5992 GB, free: 85.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.6476, allocations: 1.055 MB / 0.6003 GB, free: 85.23 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6476, allocations: 1.406 kB / 0.6003 GB, free: 85.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05928/0.7069, allocations: 43.07 MB / 0.6423 GB, free: 65.61 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001183/0.707, allocations: 203.5 kB / 0.6425 GB, free: 65.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/3.076, allocations: 0 / 0.6425 GB, free: 65.36 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)