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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 109.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.04776/0.04776, allocations: 9.239 MB / 311.9 MB, free: 0.7617 MB / 238.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.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.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: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 63.89 kB / 434 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09362, allocations: 54.26 MB / 488.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009519/0.1031, allocations: 8.46 MB / 496.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004872/0.108, allocations: 2.624 MB / 499.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006642/0.1087, allocations: 35.94 kB / 499.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007579/0.1094, allocations: 385.4 kB / 499.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003244/0.1127, allocations: 1.451 MB / 0.4895 GB, free: 10.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.1131, allocations: 151.7 kB / 0.4896 GB, free: 10.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/0.1162, allocations: 2.56 MB / 0.4921 GB, free: 7.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.1173, allocations: 0.7609 MB / 0.4929 GB, free: 7.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1185, allocations: 0.9066 MB / 0.4938 GB, free: 6.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.1202, allocations: 1.44 MB / 0.4952 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003387/0.1206, allocations: 232 kB / 0.4954 GB, free: 4.613 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.1219, allocations: 0.8698 MB / 0.4962 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.1231, allocations: 1.262 MB / 0.4975 GB, free: 2.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.1245, allocations: 1.58 MB / 0.499 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006304/0.1308, allocations: 5.054 MB / 0.504 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1308, allocations: 0 / 0.504 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1308, allocations: 0 / 0.504 GB, free: 11.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001203/0.1309, allocations: 0 / 0.504 GB, free: 11.81 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.01068/0.1416, allocations: 4.449 MB / 0.5083 GB, free: 7.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.1416, allocations: 12.03 kB / 0.5083 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008992/0.1425, allocations: 0.5471 MB / 0.5089 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006424/0.149, allocations: 1.777 MB / 0.5106 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003047/0.152, allocations: 1.365 MB / 0.5119 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.1522, allocations: 155.8 kB / 0.5121 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004487/0.1526, allocations: 191.9 kB / 0.5123 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2083/0.3609, allocations: 8.254 MB / 0.5203 GB, free: 31.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.709e-05/0.361, allocations: 26.64 kB / 0.5203 GB, free: 31.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.3612, allocations: 93.05 kB / 0.5204 GB, free: 31.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002951/0.3642, allocations: 1.9 MB / 0.5223 GB, free: 30.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01536/0.3795, allocations: 7.426 MB / 0.5295 GB, free: 28.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02928/0.4088, allocations: 25.58 MB / 0.5545 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005039/0.4138, allocations: 2.535 MB / 0.557 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.4149, allocations: 0.8649 MB / 0.5578 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005609/0.4205, allocations: 5.095 MB / 0.5628 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.4205, allocations: 43.56 kB / 0.5628 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=148): time 3.206e-06/0.4205, allocations: 0 / 0.5628 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=176): time 0.01245/0.433, allocations: 5.52 MB / 0.5682 GB, free: 10.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.433, allocations: 72.72 kB / 0.5683 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.4368, allocations: 2.619 MB / 0.5709 GB, free: 7.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.609e-05/0.4369, allocations: 45.7 kB / 0.5709 GB, free: 7.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.4385, allocations: 2.184 MB / 0.573 GB, free: 5.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006119/0.4391, allocations: 0.6743 MB / 0.5737 GB, free: 4.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.4401, allocations: 0.8348 MB / 0.5745 GB, free: 3.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4402, allocations: 301.1 kB / 0.5748 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.4424, allocations: 1.374 MB / 0.5761 GB, free: 2.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003916/0.4463, allocations: 3.626 MB / 0.5797 GB, free: 13.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006582/0.4529, allocations: 5.414 MB / 0.585 GB, free: 6.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.907e-05/0.453, allocations: 20 kB / 0.585 GB, free: 6.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008895/0.4619, allocations: 5.224 MB / 0.5901 GB, free: 1.605 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.822e-05/0.4619, allocations: 43.94 kB / 0.5901 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.926e-05/0.462, allocations: 80 kB / 0.5902 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008828/0.4629, allocations: 356.6 kB / 0.5906 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/0.4655, allocations: 0.9127 MB / 0.5914 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/0.471, allocations: 4.177 MB / 0.5955 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.4735, allocations: 208.8 kB / 0.5957 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003574/0.4739, allocations: 244 kB / 0.596 GB, free: 11.46 MB / 430.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.002331/0.4762, allocations: 1.608 MB / 0.5975 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003486/0.4766, allocations: 246.3 kB / 0.5978 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/0.4804, allocations: 2.323 MB / 0.6 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/0.4805, allocations: 37.94 kB / 0.6001 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.4806, allocations: 4 kB / 0.6001 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4806, allocations: 7.969 kB / 0.6001 GB, free: 7.207 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/0.4917, allocations: 6.439 MB / 0.6064 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.4917, allocations: 4 kB / 0.6064 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009003/0.4926, allocations: 243.6 kB / 0.6066 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006786/0.4933, allocations: 261.1 kB / 0.6068 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.279e-05/0.4934, allocations: 35.98 kB / 0.6069 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/0.4976, allocations: 3.418 MB / 0.6102 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.4976, allocations: 7.938 kB / 0.6102 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005368/0.503, allocations: 3.608 MB / 0.6138 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000682/0.5037, allocations: 311.6 kB / 0.614 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.5039, allocations: 35.98 kB / 0.6141 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007824/0.5047, allocations: 75.91 kB / 0.6142 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.5049, allocations: 105 kB / 0.6143 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.505, allocations: 55.97 kB / 0.6143 GB, free: 8.273 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.5077, allocations: 1.684 MB / 0.616 GB, free: 6.574 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5077, allocations: 3.938 kB / 0.616 GB, free: 6.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003082/0.5108, allocations: 0.7148 MB / 0.6167 GB, free: 5.855 MB / 446.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.005708/0.5165, allocations: 4.258 MB / 0.6208 GB, free: 1.523 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.522, allocations: 3.318 MB / 0.6241 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.522, allocations: 1.125 kB / 0.6241 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.5236, allocations: 1.105 MB / 0.6251 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.5255, allocations: 405.5 kB / 0.6255 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0425/0.568, allocations: 29.25 MB / 0.6541 GB, free: 12.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00301/0.571, allocations: 2.619 MB / 0.6566 GB, free: 9.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002807/0.5738, allocations: 1.271 MB / 0.6579 GB, free: 8.453 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/0.5755, allocations: 1.347 MB / 0.6592 GB, free: 7.105 MB / 494.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5755, allocations: 0 / 0.6592 GB, free: 7.105 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09618/0.6717, allocations: 49.89 MB / 0.7079 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.56, allocations: 8.047 kB / 0.7079 GB, free: 5.426 MB / 0.5294 GB " [Timeout remaining time 643] (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: 19.30369689455256] Failed to read output from testmodel.py, exit status != 0: 16.676476154942065 16.891866609 16.758500472 Calling exit ...