Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.002071/0.002071, 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.002278/0.002278, allocations: 208.8 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.512/1.512, allocations: 230.6 MB / 256 MB, free: 7.738 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.04954/0.04954, allocations: 9.247 MB / 321.7 MB, free: 9.797 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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.002904/0.002904, allocations: 69.94 kB / 447.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1175, allocations: 55.45 MB / 0.4913 GB, free: 6.977 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01001/0.1275, allocations: 7.425 MB / 0.4986 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00574/0.1333, allocations: 2.511 MB / 0.501 GB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.1347, allocations: 35.88 kB / 0.5011 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.1358, allocations: 385.4 kB / 0.5014 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.1401, allocations: 1.463 MB / 0.5029 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.1407, allocations: 135.8 kB / 0.503 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00386/0.1446, allocations: 2.515 MB / 0.5055 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.1462, allocations: 0.7458 MB / 0.5062 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001845/0.1481, allocations: 0.9261 MB / 0.5071 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002549/0.1506, allocations: 1.374 MB / 0.5084 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006336/0.1512, allocations: 232 kB / 0.5087 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.1532, allocations: 0.7566 MB / 0.5094 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.1549, allocations: 1.246 MB / 0.5106 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.1566, allocations: 1.094 MB / 0.5117 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2694/0.4261, allocations: 5.034 MB / 0.5166 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.4261, allocations: 0.6562 kB / 0.5166 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4261, allocations: 0.5938 kB / 0.5166 GB, free: 12.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001989/0.4263, allocations: 0 / 0.5166 GB, free: 12.42 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01382/0.4401, allocations: 4.402 MB / 0.5209 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.4402, allocations: 9.906 kB / 0.5209 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0011/0.4413, allocations: 0.5469 MB / 0.5214 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007969/0.4492, allocations: 1.782 MB / 0.5232 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004695/0.4539, allocations: 1.316 MB / 0.5245 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.4541, allocations: 152.9 kB / 0.5246 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.4553, allocations: 198.3 kB / 0.5248 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01491/0.4702, allocations: 8.259 MB / 0.5329 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.959e-05/0.4703, allocations: 20.53 kB / 0.5329 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000324/0.4706, allocations: 98.64 kB / 0.533 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/0.4737, allocations: 1.902 MB / 0.5348 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.4902, allocations: 7.412 MB / 0.5421 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04041/0.5306, allocations: 24.17 MB / 0.5657 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006536/0.5372, allocations: 2.08 MB / 0.5677 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.5387, allocations: 0.8615 MB / 0.5685 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007358/0.5461, allocations: 2.9 MB / 0.5714 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.173e-05/0.5461, allocations: 54.23 kB / 0.5714 GB, free: 10.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 7.854e-06/0.5462, allocations: 0.6562 kB / 0.5714 GB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01438/0.5605, allocations: 5.505 MB / 0.5768 GB, free: 5.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.5606, allocations: 64.72 kB / 0.5769 GB, free: 5.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/0.5652, allocations: 2.757 MB / 0.5796 GB, free: 2.586 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000275/0.5654, allocations: 57.7 kB / 0.5796 GB, free: 2.523 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/0.5673, allocations: 2.174 MB / 0.5817 GB, free: 368 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009353/0.5682, allocations: 0.6745 MB / 0.5824 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/0.5695, allocations: 0.8302 MB / 0.5832 GB, free: 14.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5697, allocations: 305.1 kB / 0.5835 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.5722, allocations: 1.367 MB / 0.5848 GB, free: 13.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004852/0.577, allocations: 3.627 MB / 0.5884 GB, free: 8.461 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007978/0.585, allocations: 5.429 MB / 0.5937 GB, free: 2.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.024e-05/0.5851, allocations: 24 kB / 0.5937 GB, free: 2.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.0114/0.5965, allocations: 5.226 MB / 0.5988 GB, free: 13.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/0.5966, allocations: 36 kB / 0.5988 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/0.5967, allocations: 80 kB / 0.5989 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009795/0.5977, allocations: 358.8 kB / 0.5993 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003273/0.6009, allocations: 0.9137 MB / 0.6002 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006033/0.607, allocations: 4.036 MB / 0.6041 GB, free: 7.719 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/0.6111, allocations: 209.5 kB / 0.6043 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008799/0.612, allocations: 247 kB / 0.6045 GB, free: 7.277 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (498): * Single equations (assignments): 493 * Array equations: 4 * 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.003371/0.6153, allocations: 1.6 MB / 0.6061 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005957/0.6159, allocations: 248.1 kB / 0.6063 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004343/0.6203, allocations: 2.322 MB / 0.6086 GB, free: 3.086 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001129/0.6204, allocations: 39.11 kB / 0.6086 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.6204, allocations: 4 kB / 0.6086 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.6204, allocations: 7.969 kB / 0.6086 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.633, allocations: 6.084 MB / 0.6146 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.633, allocations: 4 kB / 0.6146 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009508/0.6339, allocations: 239.6 kB / 0.6148 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007292/0.6347, allocations: 257.1 kB / 0.6151 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.804e-05/0.6348, allocations: 41.16 kB / 0.6151 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004387/0.6391, allocations: 3.279 MB / 0.6183 GB, free: 8.957 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.6391, allocations: 10.56 kB / 0.6183 GB, free: 8.949 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005927/0.6451, allocations: 3.611 MB / 0.6218 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008692/0.6459, allocations: 234.5 kB / 0.6221 GB, free: 5.035 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.6462, allocations: 32 kB / 0.6221 GB, free: 5.004 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008537/0.6471, allocations: 75.84 kB / 0.6222 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.6473, allocations: 112 kB / 0.6223 GB, free: 4.824 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.6474, allocations: 55.98 kB / 0.6223 GB, free: 4.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00273/0.6501, allocations: 1.677 MB / 0.624 GB, free: 3.078 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6501, allocations: 0 / 0.624 GB, free: 3.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003162/0.6533, allocations: 0.7108 MB / 0.6247 GB, free: 2.367 MB / 462.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,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * 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.006157/0.6595, allocations: 4.26 MB / 0.6288 GB, free: 14.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006033/0.6655, allocations: 3.306 MB / 0.632 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.6655, allocations: 4 kB / 0.6321 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001775/0.6673, allocations: 1.098 MB / 0.6331 GB, free: 9.617 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.6694, allocations: 404.2 kB / 0.6335 GB, free: 9.238 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04766/0.717, allocations: 29.31 MB / 0.6621 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003038/0.7201, allocations: 2.066 MB / 0.6642 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003125/0.7232, allocations: 1.267 MB / 0.6654 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001951/0.7252, allocations: 1.347 MB / 0.6667 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of SimCode: time 1.283e-06/0.7252, allocations: 0 / 0.6667 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/0.8419, allocations: 50.36 MB / 0.7159 GB, free: 2.316 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.33, allocations: 0 / 0.7159 GB, free: 2.316 MB / 0.545 GB " [Timeout remaining time 645] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.46179126482457] Failed to read output from testmodel.py, exit status != 0: 15.47526773205027 15.755482537 15.325822642 Calling exit ...