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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 211 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04901/0.04901, allocations: 9.245 MB / 321.7 MB, free: 9.812 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 63.89 kB / 447.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1292, allocations: 55.47 MB / 0.4913 GB, free: 6.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01599/0.1451, allocations: 11.87 MB / 0.5029 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009666/0.1548, allocations: 3.933 MB / 0.5068 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002717/0.1575, allocations: 63.75 kB / 0.5068 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.159, allocations: 396.7 kB / 0.5072 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003211/0.1622, allocations: 0.9283 MB / 0.5081 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.1642, allocations: 0.9715 MB / 0.5091 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003584/0.1678, allocations: 2.225 MB / 0.5112 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002763/0.1706, allocations: 1.975 MB / 0.5132 GB, free: 472 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2404/0.411, allocations: 1.053 MB / 0.5142 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.4126, allocations: 1.119 MB / 0.5153 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004063/0.413, allocations: 308.2 kB / 0.5156 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.4141, allocations: 0.7233 MB / 0.5163 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006845/0.4148, allocations: 0.9709 MB / 0.5172 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.4159, allocations: 1.176 MB / 0.5184 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003957/0.4198, allocations: 3.92 MB / 0.5222 GB, free: 8.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4198, allocations: 3.281 kB / 0.5222 GB, free: 8.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4198, allocations: 1.781 kB / 0.5222 GB, free: 8.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.64e-05/0.4199, allocations: 0 / 0.5222 GB, free: 8.477 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.01221/0.4321, allocations: 4.212 MB / 0.5263 GB, free: 7.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.4322, allocations: 9.969 kB / 0.5263 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006719/0.4329, allocations: 452.5 kB / 0.5268 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007599/0.4336, allocations: 309.5 kB / 0.5271 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002463/0.4361, allocations: 1.077 MB / 0.5281 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.4362, allocations: 214.9 kB / 0.5283 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004684/0.4367, allocations: 292.4 kB / 0.5286 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.4485, allocations: 4.74 MB / 0.5332 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001327/0.4486, allocations: 34.72 kB / 0.5333 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002819/0.4489, allocations: 136.2 kB / 0.5334 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005508/0.4494, allocations: 428.5 kB / 0.5338 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007165/0.4566, allocations: 3.364 MB / 0.5371 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02518/0.4818, allocations: 20.7 MB / 0.5573 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005047/0.4868, allocations: 1.428 MB / 0.5587 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.4879, allocations: 0.6688 MB / 0.5594 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006932/0.4949, allocations: 3.447 MB / 0.5627 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.914e-05/0.4949, allocations: 42.78 kB / 0.5628 GB, free: 16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 3.286e-06/0.4949, allocations: 4 kB / 0.5628 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02491/0.5198, allocations: 9.299 MB / 0.5719 GB, free: 7.188 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.52, allocations: 68.72 kB / 0.5719 GB, free: 7.109 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002876/0.5229, allocations: 1.934 MB / 0.5738 GB, free: 5.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.523, allocations: 49.7 kB / 0.5739 GB, free: 5.121 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.5246, allocations: 1.803 MB / 0.5756 GB, free: 3.324 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006752/0.5253, allocations: 0.5498 MB / 0.5762 GB, free: 2.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001072/0.5264, allocations: 0.7535 MB / 0.5769 GB, free: 2.023 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5266, allocations: 357.9 kB / 0.5772 GB, free: 1.668 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002034/0.5286, allocations: 1.225 MB / 0.5784 GB, free: 452 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004188/0.5328, allocations: 3.411 MB / 0.5818 GB, free: 11.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006831/0.5396, allocations: 5.12 MB / 0.5868 GB, free: 6.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.433e-05/0.5397, allocations: 24 kB / 0.5868 GB, free: 6.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008316/0.548, allocations: 4.814 MB / 0.5915 GB, free: 1.727 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.957e-05/0.548, allocations: 40 kB / 0.5915 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.491e-05/0.5481, allocations: 76.84 kB / 0.5916 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009388/0.5491, allocations: 368.6 kB / 0.5919 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/0.5518, allocations: 0.8904 MB / 0.5928 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006249/0.5581, allocations: 4.169 MB / 0.5969 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.5606, allocations: 215.8 kB / 0.5971 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003491/0.5609, allocations: 232 kB / 0.5973 GB, free: 11.77 MB / 446.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.001641/0.5625, allocations: 0.9244 MB / 0.5982 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003749/0.5629, allocations: 198.7 kB / 0.5984 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004617/0.5675, allocations: 2.595 MB / 0.6009 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.5676, allocations: 16 kB / 0.601 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5676, allocations: 0 / 0.601 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.5676, allocations: 16.47 kB / 0.601 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/0.5802, allocations: 6.098 MB / 0.6069 GB, free: 1.875 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.5802, allocations: 4 kB / 0.6069 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.5814, allocations: 272.6 kB / 0.6072 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007306/0.5821, allocations: 252.6 kB / 0.6074 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.971e-05/0.5822, allocations: 32 kB / 0.6075 GB, free: 1.324 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004801/0.587, allocations: 3.329 MB / 0.6107 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.587, allocations: 8.062 kB / 0.6107 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006381/0.5934, allocations: 3.905 MB / 0.6145 GB, free: 9.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006926/0.5941, allocations: 174.7 kB / 0.6147 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.5943, allocations: 28 kB / 0.6147 GB, free: 9.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000858/0.5952, allocations: 103.8 kB / 0.6148 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.5954, allocations: 112.6 kB / 0.6149 GB, free: 9.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.9e-05/0.5955, allocations: 36.8 kB / 0.615 GB, free: 9.465 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001801/0.5973, allocations: 1.085 MB / 0.616 GB, free: 8.391 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5973, allocations: 0 / 0.616 GB, free: 8.391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003328/0.6007, allocations: 0.6289 MB / 0.6166 GB, free: 7.762 MB / 462.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.006625/0.6073, allocations: 4.497 MB / 0.621 GB, free: 3.191 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005733/0.613, allocations: 3.198 MB / 0.6242 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.613, allocations: 0 / 0.6242 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.6149, allocations: 1.213 MB / 0.6253 GB, free: 14.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.617, allocations: 450.3 kB / 0.6258 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03672/0.6537, allocations: 24.56 MB / 0.6498 GB, free: 2.809 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/0.6555, allocations: 1.252 MB / 0.651 GB, free: 1.527 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002326/0.6579, allocations: 0.8576 MB / 0.6518 GB, free: 0.668 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.6595, allocations: 1.064 MB / 0.6529 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of SimCode: time 1.553e-06/0.6595, allocations: 0 / 0.6529 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.7608, allocations: 46.99 MB / 0.6987 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.23, allocations: 19.11 kB / 0.6988 GB, free: 1.016 MB / 0.5294 GB " [Timeout remaining time 646] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.061911763157696] Failed to read output from testmodel.py, exit status != 0: 14.369932701811194 14.397099575 13.971959835 Calling exit ...