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.006352/0.006352, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001337/0.001337, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04608/0.04608, allocations: 9.119 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 67.89 kB / 414.1 MB, free: 21.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09197, allocations: 51.44 MB / 465.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01529/0.1073, allocations: 13.79 MB / 479.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007862/0.1152, allocations: 4.03 MB / 483.4 MB, free: 252 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.1166, allocations: 55.88 kB / 483.5 MB, free: 196 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009095/0.1175, allocations: 388.7 kB / 483.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002009/0.1196, allocations: 0.9049 MB / 484.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.1211, allocations: 0.9753 MB / 485.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.1236, allocations: 2.234 MB / 487.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002988/0.1266, allocations: 2.746 MB / 490.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.1277, allocations: 1.02 MB / 491.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.1292, allocations: 1.237 MB / 493 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003846/0.1296, allocations: 315.9 kB / 493.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.1307, allocations: 0.7063 MB / 494 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008552/0.1316, allocations: 0.9701 MB / 494.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.133, allocations: 1.485 MB / 496.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003957/0.137, allocations: 3.899 MB / 0.4886 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.137, allocations: 0 / 0.4886 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.137, allocations: 3.938 kB / 0.4886 GB, free: 15.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.902e-05/0.1371, allocations: 0 / 0.4886 GB, free: 15.19 MB / 382.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.008935/0.146, allocations: 4.23 MB / 0.4927 GB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1461, allocations: 12.03 kB / 0.4927 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005037/0.1466, allocations: 456.3 kB / 0.4932 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004886/0.1471, allocations: 310.9 kB / 0.4935 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.1488, allocations: 1.136 MB / 0.4946 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.149, allocations: 213.8 kB / 0.4948 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003818/0.1493, allocations: 295.9 kB / 0.4951 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008157/0.1575, allocations: 4.74 MB / 0.4997 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.1577, allocations: 35.7 kB / 0.4997 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.1579, allocations: 128 kB / 0.4999 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005946/0.1585, allocations: 440.2 kB / 0.5003 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1994/0.3579, allocations: 3.365 MB / 0.5036 GB, free: 41.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0217/0.3797, allocations: 21.6 MB / 0.5246 GB, free: 26.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005023/0.3848, allocations: 1.927 MB / 0.5265 GB, free: 25.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.3858, allocations: 0.6886 MB / 0.5272 GB, free: 25.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005954/0.3918, allocations: 5.553 MB / 0.5326 GB, free: 21.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.3918, allocations: 43.62 kB / 0.5327 GB, free: 21.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.908e-06/0.3919, allocations: 3.938 kB / 0.5327 GB, free: 21.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01907/0.4109, allocations: 9.603 MB / 0.5421 GB, free: 16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.411, allocations: 68.22 kB / 0.5421 GB, free: 15.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.4127, allocations: 1.816 MB / 0.5439 GB, free: 14.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.844e-05/0.4128, allocations: 49.64 kB / 0.5439 GB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005349/0.4133, allocations: 1.803 MB / 0.5457 GB, free: 12.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.4136, allocations: 0.5479 MB / 0.5462 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006889/0.4143, allocations: 0.7547 MB / 0.547 GB, free: 11.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.4144, allocations: 357.9 kB / 0.5473 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.4157, allocations: 1.222 MB / 0.5485 GB, free: 9.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001902/0.4176, allocations: 3.409 MB / 0.5518 GB, free: 5.203 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/0.4217, allocations: 5.12 MB / 0.5568 GB, free: 15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.746e-05/0.4217, allocations: 28 kB / 0.5569 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007811/0.4295, allocations: 4.825 MB / 0.5616 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/0.4296, allocations: 37.31 kB / 0.5616 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.264e-05/0.4297, allocations: 80 kB / 0.5617 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009298/0.4307, allocations: 373 kB / 0.562 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/0.4334, allocations: 0.8928 MB / 0.5629 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005703/0.4391, allocations: 4.298 MB / 0.5671 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00223/0.4413, allocations: 215.8 kB / 0.5673 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003072/0.4417, allocations: 228 kB / 0.5675 GB, free: 3.898 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.001402/0.4431, allocations: 0.9352 MB / 0.5684 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002993/0.4434, allocations: 206.6 kB / 0.5686 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004264/0.4476, allocations: 2.599 MB / 0.5712 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.4477, allocations: 16 kB / 0.5712 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4477, allocations: 0 / 0.5712 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.4477, allocations: 3.984 kB / 0.5712 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.4591, allocations: 6.434 MB / 0.5775 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.4591, allocations: 6.375 kB / 0.5775 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.4602, allocations: 267.6 kB / 0.5777 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.4609, allocations: 261 kB / 0.578 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.345e-05/0.461, allocations: 31.94 kB / 0.578 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004678/0.4657, allocations: 3.459 MB / 0.5814 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.4658, allocations: 4 kB / 0.5814 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005786/0.4716, allocations: 3.913 MB / 0.5852 GB, free: 1.465 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005635/0.4721, allocations: 255.8 kB / 0.5855 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.4724, allocations: 27.94 kB / 0.5855 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008077/0.4732, allocations: 111.8 kB / 0.5856 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.4734, allocations: 96.75 kB / 0.5857 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.4735, allocations: 36.69 kB / 0.5857 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.4751, allocations: 1.086 MB / 0.5868 GB, free: 15.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.4751, allocations: 0 / 0.5868 GB, free: 15.85 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002565/0.4777, allocations: 0.6367 MB / 0.5874 GB, free: 15.21 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.006119/0.4839, allocations: 4.499 MB / 0.5918 GB, free: 10.63 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005781/0.4897, allocations: 3.324 MB / 0.5951 GB, free: 7.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.4897, allocations: 3.938 kB / 0.5951 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.4916, allocations: 1.279 MB / 0.5963 GB, free: 6.012 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.4936, allocations: 436.6 kB / 0.5967 GB, free: 5.609 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03589/0.5295, allocations: 24.57 MB / 0.6207 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002175/0.5317, allocations: 1.822 MB / 0.6225 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002246/0.534, allocations: 0.8628 MB / 0.6233 GB, free: 7.312 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/0.5356, allocations: 1.054 MB / 0.6244 GB, free: 6.258 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5356, allocations: 0 / 0.6244 GB, free: 6.258 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1217/0.6574, allocations: 45.61 MB / 0.6689 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/15.04, allocations: 8 kB / 0.6689 GB, free: 8.812 MB / 0.4981 GB (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)