Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.001482/0.001482, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001961/0.001961, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.693/1.693, allocations: 230.6 MB / 256 MB, free: 8.02 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.05405/0.05405, allocations: 9.234 MB / 321.7 MB, free: 10.07 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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.00226/0.00226, allocations: 71.83 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1534, allocations: 55.46 MB / 0.4914 GB, free: 7.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01664/0.17, allocations: 10.76 MB / 0.5019 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009076/0.1791, allocations: 3.012 MB / 0.5049 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002393/0.1815, allocations: 51.75 kB / 0.5049 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.1834, allocations: 468.8 kB / 0.5054 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006673/0.1901, allocations: 1.712 MB / 0.507 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1911, allocations: 171.8 kB / 0.5072 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.1971, allocations: 3.097 MB / 0.5102 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002077/0.1992, allocations: 0.9505 MB / 0.5112 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.2014, allocations: 1.148 MB / 0.5123 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.2042, allocations: 1.763 MB / 0.514 GB, free: 300 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007625/0.205, allocations: 292 kB / 0.5143 GB, free: 8 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3455/0.5505, allocations: 0.9263 MB / 0.5152 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002574/0.5531, allocations: 1.521 MB / 0.5167 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002758/0.5559, allocations: 1.937 MB / 0.5186 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.5678, allocations: 6.07 MB / 0.5245 GB, free: 8.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.5678, allocations: 2.578 kB / 0.5245 GB, free: 8.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.5678, allocations: 0 / 0.5245 GB, free: 8.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002595/0.5681, allocations: 0.8438 kB / 0.5245 GB, free: 8.191 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01755/0.5856, allocations: 4.627 MB / 0.529 GB, free: 6.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.5857, allocations: 12.06 kB / 0.529 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00147/0.5872, allocations: 0.675 MB / 0.5297 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008018/0.5952, allocations: 1.931 MB / 0.5316 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004628/0.5998, allocations: 1.543 MB / 0.5331 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002824/0.6001, allocations: 191.2 kB / 0.5332 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009368/0.601, allocations: 255.6 kB / 0.5335 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01992/0.621, allocations: 9.779 MB / 0.543 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001057/0.6211, allocations: 27.62 kB / 0.5431 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004461/0.6215, allocations: 129 kB / 0.5432 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004037/0.6255, allocations: 2.296 MB / 0.5454 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02115/0.6467, allocations: 8.478 MB / 0.5537 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06074/0.7074, allocations: 30.56 MB / 0.5836 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007102/0.7145, allocations: 2.241 MB / 0.5857 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/0.7165, allocations: 0.9818 MB / 0.5867 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.7268, allocations: 3.967 MB / 0.5906 GB, free: 6.336 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/0.7269, allocations: 43.88 kB / 0.5906 GB, free: 6.281 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 5.22e-06/0.7269, allocations: 0 / 0.5906 GB, free: 6.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02164/0.7485, allocations: 8.183 MB / 0.5986 GB, free: 14.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.7487, allocations: 68.72 kB / 0.5987 GB, free: 14.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006511/0.7552, allocations: 3.211 MB / 0.6018 GB, free: 10.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.7553, allocations: 51.89 kB / 0.6019 GB, free: 10.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002923/0.7583, allocations: 2.71 MB / 0.6045 GB, free: 8.043 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001076/0.7593, allocations: 0.7023 MB / 0.6052 GB, free: 7.348 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001777/0.7611, allocations: 0.9923 MB / 0.6062 GB, free: 6.348 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7613, allocations: 306.8 kB / 0.6065 GB, free: 6.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003124/0.7644, allocations: 1.567 MB / 0.608 GB, free: 4.473 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006073/0.7705, allocations: 4.356 MB / 0.6122 GB, free: 14.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.7806, allocations: 6.375 MB / 0.6185 GB, free: 7.422 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.341e-05/0.7806, allocations: 28 kB / 0.6185 GB, free: 7.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01286/0.7935, allocations: 6.044 MB / 0.6244 GB, free: 1.465 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/0.7936, allocations: 48 kB / 0.6244 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/0.7937, allocations: 96 kB / 0.6245 GB, free: 1.324 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.7949, allocations: 378.9 kB / 0.6249 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003655/0.7985, allocations: 1.096 MB / 0.626 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005249/0.8038, allocations: 3.594 MB / 0.6295 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004084/0.8079, allocations: 243.8 kB / 0.6297 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007029/0.8086, allocations: 292 kB / 0.63 GB, free: 11.63 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004513/0.8131, allocations: 1.891 MB / 0.6318 GB, free: 9.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006383/0.8137, allocations: 286.1 kB / 0.6321 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00507/0.8188, allocations: 2.414 MB / 0.6345 GB, free: 7.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001853/0.819, allocations: 47.89 kB / 0.6345 GB, free: 6.973 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.819, allocations: 4 kB / 0.6345 GB, free: 6.969 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/0.819, allocations: 8.031 kB / 0.6345 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01527/0.8343, allocations: 6.818 MB / 0.6412 GB, free: 64 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.8343, allocations: 4.469 kB / 0.6412 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.8355, allocations: 263.6 kB / 0.6414 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007856/0.8363, allocations: 247.3 kB / 0.6417 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.8364, allocations: 43.98 kB / 0.6417 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.8406, allocations: 2.85 MB / 0.6445 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.8406, allocations: 7.984 kB / 0.6445 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007217/0.8478, allocations: 3.737 MB / 0.6481 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.849, allocations: 286.1 kB / 0.6484 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/0.8493, allocations: 32.28 kB / 0.6485 GB, free: 8.438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.8504, allocations: 82.25 kB / 0.6485 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.8506, allocations: 113 kB / 0.6486 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.8507, allocations: 59.92 kB / 0.6487 GB, free: 8.188 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004231/0.8549, allocations: 2.033 MB / 0.6507 GB, free: 6.152 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8549, allocations: 4 kB / 0.6507 GB, free: 6.148 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005296/0.8602, allocations: 0.8344 MB / 0.6515 GB, free: 5.316 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0073/0.8675, allocations: 4.385 MB / 0.6558 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008062/0.8756, allocations: 3.721 MB / 0.6594 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.8756, allocations: 0 / 0.6594 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.8777, allocations: 1.153 MB / 0.6605 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/0.8802, allocations: 463 kB / 0.661 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06871/0.949, allocations: 34.56 MB / 0.6947 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004807/0.9538, allocations: 2.999 MB / 0.6977 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003815/0.9576, allocations: 1.436 MB / 0.6991 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002539/0.9601, allocations: 1.695 MB / 0.7007 GB, free: 14.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/0.9601, allocations: 0 / 0.7007 GB, free: 14.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.468/1.428, allocations: 58.65 MB / 0.758 GB, free: 164.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.9/26.33, allocations: 7.438 kB / 0.758 GB, free: 164.4 MB / 0.545 GB " [Timeout remaining time 634] (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.479745741933584] Failed to read output from testmodel.py, exit status != 0: 26.48043127404526 26.494261864 25.92337306 Calling exit ...