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.001295/0.001295, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001497/0.001498, allocations: 194.7 kB / 16.14 MB, free: 6.707 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1991/0.1991, allocations: 9.092 MB / 299 MB, free: 1.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001402, allocations: 64.12 kB / 361.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.1004, allocations: 51.43 MB / 412.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2136/0.3141, allocations: 36.18 MB / 449 MB, free: 22.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3294, allocations: 8.17 MB / 457.1 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008761/0.3382, allocations: 133.9 kB / 457.3 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.3398, allocations: 310.9 kB / 457.6 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002706/0.3426, allocations: 0.8025 MB / 458.4 MB, free: 16.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.3441, allocations: 0.9014 MB / 459.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002248/0.3464, allocations: 2.439 MB / 461.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.3484, allocations: 2.437 MB / 464.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007175/0.3492, allocations: 0.9031 MB / 465 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009274/0.3501, allocations: 1.224 MB / 466.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002377/0.3504, allocations: 202.5 kB / 466.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008635/0.3512, allocations: 0.6372 MB / 467.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004903/0.3517, allocations: 0.8649 MB / 468 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008209/0.3526, allocations: 1.367 MB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.3546, allocations: 3.666 MB / 473 MB, free: 9.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3546, allocations: 4 kB / 473 MB, free: 9.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3546, allocations: 0 / 473 MB, free: 9.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.3547, allocations: 0 / 473 MB, free: 9.777 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.008458/0.3631, allocations: 4.172 MB / 477.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3632, allocations: 13.84 kB / 477.2 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004315/0.3636, allocations: 453.9 kB / 477.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004714/0.3641, allocations: 294.8 kB / 477.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.3656, allocations: 1.131 MB / 479.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.3657, allocations: 215.1 kB / 479.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/0.3661, allocations: 293.1 kB / 479.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007639/0.3737, allocations: 4.728 MB / 484.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.404e-05/0.3738, allocations: 45.5 kB / 484.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/0.3741, allocations: 128.8 kB / 484.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005801/0.3746, allocations: 427.7 kB / 484.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007093/0.3817, allocations: 3.374 MB / 488.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02555/0.4073, allocations: 21.63 MB / 0.4979 GB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004973/0.4123, allocations: 1.923 MB / 0.4998 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.4134, allocations: 0.6947 MB / 0.5005 GB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006654/0.4201, allocations: 5.546 MB / 0.5059 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.4202, allocations: 39.56 kB / 0.5059 GB, free: 9.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.765e-06/0.4202, allocations: 0 / 0.5059 GB, free: 9.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02406/0.4442, allocations: 9.551 MB / 0.5153 GB, free: 32 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.4444, allocations: 68.66 kB / 0.5153 GB, free: 15.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.4484, allocations: 1.81 MB / 0.5171 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002786/0.4487, allocations: 49.7 kB / 0.5171 GB, free: 14.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.4507, allocations: 1.739 MB / 0.5188 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009257/0.4517, allocations: 0.5243 MB / 0.5193 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001643/0.4533, allocations: 0.7386 MB / 0.5201 GB, free: 11.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.4536, allocations: 357.9 kB / 0.5204 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.456, allocations: 1.225 MB / 0.5216 GB, free: 9.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003921/0.4599, allocations: 3.41 MB / 0.5249 GB, free: 4.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006302/0.4662, allocations: 5.116 MB / 0.5299 GB, free: 14.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.225e-05/0.4663, allocations: 24 kB / 0.53 GB, free: 14.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008252/0.4746, allocations: 4.824 MB / 0.5347 GB, free: 9.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.221e-05/0.4747, allocations: 36.97 kB / 0.5347 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.4748, allocations: 76 kB / 0.5348 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009326/0.4757, allocations: 368.6 kB / 0.5351 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/0.4784, allocations: 0.889 MB / 0.536 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005044/0.4835, allocations: 3.953 MB / 0.5399 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/0.4859, allocations: 215.7 kB / 0.5401 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003461/0.4862, allocations: 228 kB / 0.5403 GB, free: 4.027 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.001496/0.4877, allocations: 0.9237 MB / 0.5412 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.4881, allocations: 189.6 kB / 0.5414 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00409/0.4922, allocations: 2.607 MB / 0.5439 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4922, allocations: 12 kB / 0.5439 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4922, allocations: 4 kB / 0.5439 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.4923, allocations: 11.95 kB / 0.5439 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/0.5031, allocations: 6.5 MB / 0.5503 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.5031, allocations: 4 kB / 0.5503 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.5042, allocations: 275.5 kB / 0.5505 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000712/0.5049, allocations: 267.3 kB / 0.5508 GB, free: 9.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.505, allocations: 24 kB / 0.5508 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003733/0.5088, allocations: 3.188 MB / 0.5539 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5088, allocations: 7.938 kB / 0.5539 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005191/0.514, allocations: 3.896 MB / 0.5578 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005075/0.5145, allocations: 246.7 kB / 0.558 GB, free: 1.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003836/0.5149, allocations: 28 kB / 0.558 GB, free: 1.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009939/0.5159, allocations: 115.7 kB / 0.5581 GB, free: 1.379 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.5162, allocations: 88.88 kB / 0.5582 GB, free: 1.289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.494e-05/0.5163, allocations: 36 kB / 0.5582 GB, free: 1.254 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001741/0.518, allocations: 1.088 MB / 0.5593 GB, free: 180 kB / 430.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.518, allocations: 0 / 0.5593 GB, free: 180 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002833/0.5208, allocations: 0.6368 MB / 0.5599 GB, free: 15.54 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.005491/0.5263, allocations: 4.49 MB / 0.5643 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005084/0.5314, allocations: 3.308 MB / 0.5675 GB, free: 7.664 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5315, allocations: 0 / 0.5675 GB, free: 7.664 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.5332, allocations: 1.267 MB / 0.5688 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.5351, allocations: 413.2 kB / 0.5692 GB, free: 5.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1924/0.7275, allocations: 27.57 MB / 0.5961 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.7288, allocations: 1.825 MB / 0.5979 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001962/0.7308, allocations: 0.8601 MB / 0.5987 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/0.7319, allocations: 1.053 MB / 0.5998 GB, free: 109.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.7319, allocations: 3 kB / 0.5998 GB, free: 109.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06652/0.7984, allocations: 43.62 MB / 0.6424 GB, free: 91.27 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/0.7986, allocations: 200.3 kB / 0.6425 GB, free: 91.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.282, allocations: 7.438 kB / 0.6426 GB, free: 91.02 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)