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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0007627/0.0007628, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.0008661/0.0008661, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1696/0.1696, allocations: 9.109 MB / 300.2 MB, free: 2.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003331, allocations: 8 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.107, allocations: 52.43 MB / 415.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2225/0.3295, allocations: 32.68 MB / 448.3 MB, free: 24.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.3461, allocations: 7.864 MB / 456.2 MB, free: 19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006675/0.3528, allocations: 130.5 kB / 456.3 MB, free: 18.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005226/0.3581, allocations: 1.388 MB / 457.7 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.3724, allocations: 4.542 MB / 462.2 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.3756, allocations: 0.7097 MB / 462.9 MB, free: 16.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.3789, allocations: 2.226 MB / 465.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.3814, allocations: 2.006 MB / 467.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009728/0.3823, allocations: 0.7748 MB / 467.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.3834, allocations: 1.013 MB / 469 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.3836, allocations: 130.5 kB / 469.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008031/0.3844, allocations: 482.5 kB / 469.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005137/0.3849, allocations: 0.7453 MB / 470.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004488/0.3854, allocations: 0.5234 MB / 470.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002222/0.3876, allocations: 2.893 MB / 473.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3876, allocations: 8 kB / 473.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3876, allocations: 0 / 473.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.604e-05/0.3877, allocations: 0 / 473.7 MB, free: 12.16 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.009074/0.3968, allocations: 3.629 MB / 477.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.3968, allocations: 9.406 kB / 477.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007626/0.3976, allocations: 454 kB / 477.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006159/0.3982, allocations: 297 kB / 478.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.4002, allocations: 1.112 MB / 479.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.4005, allocations: 211.7 kB / 479.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004272/0.4009, allocations: 289.1 kB / 479.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008513/0.4094, allocations: 4.71 MB / 484.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.4096, allocations: 45.14 kB / 484.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002336/0.4098, allocations: 132.1 kB / 484.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005833/0.4104, allocations: 424 kB / 485 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007248/0.4177, allocations: 3.361 MB / 488.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02107/0.4388, allocations: 21.62 MB / 0.498 GB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004786/0.4436, allocations: 1.906 MB / 0.4999 GB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.4447, allocations: 0.6934 MB / 0.5006 GB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006954/0.4517, allocations: 5.546 MB / 0.506 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.4518, allocations: 47.56 kB / 0.506 GB, free: 11.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.4518, allocations: 0 / 0.506 GB, free: 11.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02158/0.4734, allocations: 9.575 MB / 0.5154 GB, free: 1.816 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.4734, allocations: 68.66 kB / 0.5154 GB, free: 1.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/0.4762, allocations: 1.795 MB / 0.5172 GB, free: 15.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.873e-05/0.4763, allocations: 45.7 kB / 0.5172 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.4774, allocations: 1.728 MB / 0.5189 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004688/0.4779, allocations: 0.5282 MB / 0.5194 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.4781, allocations: 80 kB / 0.5195 GB, free: 13.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003048/0.4784, allocations: 0.4989 MB / 0.52 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/0.4803, allocations: 1.214 MB / 0.5212 GB, free: 11.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003301/0.4836, allocations: 3.386 MB / 0.5245 GB, free: 7.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.4864, allocations: 1.899 MB / 0.5264 GB, free: 5.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.795e-05/0.4865, allocations: 24 kB / 0.5264 GB, free: 5.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007746/0.4942, allocations: 4.786 MB / 0.5311 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.49e-05/0.4943, allocations: 44.88 kB / 0.5311 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.4944, allocations: 80.16 kB / 0.5312 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000873/0.4953, allocations: 372.6 kB / 0.5315 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/0.498, allocations: 0.8929 MB / 0.5324 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004984/0.503, allocations: 3.95 MB / 0.5363 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002438/0.5054, allocations: 215.7 kB / 0.5365 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000441/0.5059, allocations: 228 kB / 0.5367 GB, free: 10.72 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001766/0.5077, allocations: 0.9276 MB / 0.5376 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003922/0.5081, allocations: 197.5 kB / 0.5378 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/0.5123, allocations: 2.587 MB / 0.5403 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.5123, allocations: 16 kB / 0.5403 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.5123, allocations: 4 kB / 0.5403 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.5123, allocations: 7.969 kB / 0.5403 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.5235, allocations: 6.512 MB / 0.5467 GB, free: 316 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/0.5235, allocations: 8.453 kB / 0.5467 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5245, allocations: 271.6 kB / 0.547 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006638/0.5252, allocations: 258.8 kB / 0.5472 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.5253, allocations: 31.98 kB / 0.5472 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003771/0.5291, allocations: 3.176 MB / 0.5503 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5291, allocations: 4 kB / 0.5503 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.5345, allocations: 3.892 MB / 0.5541 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007713/0.5353, allocations: 242.7 kB / 0.5544 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004607/0.5358, allocations: 28 kB / 0.5544 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.5368, allocations: 107.8 kB / 0.5545 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.5371, allocations: 92.81 kB / 0.5546 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-05/0.5372, allocations: 40 kB / 0.5546 GB, free: 7.961 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002212/0.5394, allocations: 1.077 MB / 0.5557 GB, free: 6.895 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5394, allocations: 0 / 0.5557 GB, free: 6.895 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003192/0.5426, allocations: 0.6367 MB / 0.5563 GB, free: 6.258 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005512/0.5481, allocations: 4.471 MB / 0.5607 GB, free: 1.707 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005344/0.5535, allocations: 3.296 MB / 0.5639 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.5535, allocations: 0 / 0.5639 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.5553, allocations: 1.269 MB / 0.5651 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.5576, allocations: 408.5 kB / 0.5655 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2303/0.788, allocations: 17.11 MB / 0.5822 GB, free: 98.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.7894, allocations: 1.826 MB / 0.584 GB, free: 98.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002137/0.7916, allocations: 0.8564 MB / 0.5848 GB, free: 98.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/0.7928, allocations: 1.057 MB / 0.5859 GB, free: 98.14 MB / 446.1 MB Notification: Performance of SimCode: time 1.163e-06/0.7928, allocations: 0 / 0.5859 GB, free: 98.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07777/0.8706, allocations: 45.31 MB / 0.6301 GB, free: 80.51 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001239/0.8707, allocations: 189.3 kB / 0.6303 GB, free: 80.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.479/3.35, allocations: 0 / 0.6303 GB, free: 80.27 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/linux/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) Environment - environmentSimulation: