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.002118/0.002118, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001806/0.001806, allocations: 215.3 kB / 23.03 MB, free: 4.922 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.585/1.585, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.04847/0.04847, allocations: 9.246 MB / 322.5 MB, free: 9.957 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="cs",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.002022/0.002022, allocations: 59.91 kB / 448.4 MB, free: 14.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1126, allocations: 55.47 MB / 0.4921 GB, free: 7.141 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009617/0.1222, allocations: 7.376 MB / 0.4993 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006108/0.1284, allocations: 2.496 MB / 0.5017 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.1303, allocations: 39.88 kB / 0.5018 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.1317, allocations: 381.4 kB / 0.5021 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004777/0.1365, allocations: 1.471 MB / 0.5036 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.1372, allocations: 131.8 kB / 0.5037 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004259/0.1414, allocations: 2.528 MB / 0.5062 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001774/0.1432, allocations: 0.7574 MB / 0.5069 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.1452, allocations: 0.9261 MB / 0.5078 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002532/0.1477, allocations: 1.44 MB / 0.5092 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000888/0.1486, allocations: 232 kB / 0.5095 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002024/0.1506, allocations: 0.7607 MB / 0.5102 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001815/0.1524, allocations: 1.238 MB / 0.5114 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002319/0.1548, allocations: 1.102 MB / 0.5125 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2989/0.4537, allocations: 5.025 MB / 0.5174 GB, free: 11.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4537, allocations: 0 / 0.5174 GB, free: 11.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4537, allocations: 0.5312 kB / 0.5174 GB, free: 11.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001811/0.4539, allocations: 1.469 kB / 0.5174 GB, free: 11.99 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.015/0.4689, allocations: 4.408 MB / 0.5217 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.4689, allocations: 8.188 kB / 0.5217 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001236/0.469, allocations: 74.78 kB / 0.5218 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00145/0.4705, allocations: 0.5473 MB / 0.5223 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00779/0.4783, allocations: 1.781 MB / 0.524 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004735/0.483, allocations: 1.313 MB / 0.5253 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002766/0.4833, allocations: 152.7 kB / 0.5255 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.4846, allocations: 200.1 kB / 0.5257 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01836/0.5029, allocations: 8.26 MB / 0.5337 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.503, allocations: 24.62 kB / 0.5338 GB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003583/0.5034, allocations: 93.61 kB / 0.5338 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003261/0.5067, allocations: 1.907 MB / 0.5357 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.5228, allocations: 7.42 MB / 0.543 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03819/0.5609, allocations: 24.17 MB / 0.5666 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00648/0.5674, allocations: 2.084 MB / 0.5686 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.5689, allocations: 0.8577 MB / 0.5694 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00661/0.5756, allocations: 2.894 MB / 0.5723 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.5756, allocations: 48 kB / 0.5723 GB, free: 10.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.499e-06/0.5756, allocations: 8 kB / 0.5723 GB, free: 10.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01419/0.5898, allocations: 5.507 MB / 0.5777 GB, free: 5.281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.5899, allocations: 68.72 kB / 0.5778 GB, free: 5.199 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00425/0.5941, allocations: 2.62 MB / 0.5803 GB, free: 2.551 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.5943, allocations: 52.59 kB / 0.5804 GB, free: 2.496 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/0.5962, allocations: 2.179 MB / 0.5825 GB, free: 336 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008314/0.597, allocations: 0.6765 MB / 0.5831 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.5984, allocations: 0.8282 MB / 0.584 GB, free: 14.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5986, allocations: 309.1 kB / 0.5843 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/0.6009, allocations: 1.367 MB / 0.5856 GB, free: 13.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004971/0.6059, allocations: 3.629 MB / 0.5891 GB, free: 8.418 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00773/0.6136, allocations: 5.416 MB / 0.5944 GB, free: 2.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.972e-05/0.6137, allocations: 24 kB / 0.5944 GB, free: 2.211 MB / 430.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.0116/0.6253, allocations: 5.225 MB / 0.5995 GB, free: 13.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.595e-05/0.6254, allocations: 36 kB / 0.5996 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.6255, allocations: 83.98 kB / 0.5997 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009833/0.6264, allocations: 361.3 kB / 0.6 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003027/0.6295, allocations: 0.9124 MB / 0.6009 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005676/0.6351, allocations: 4.042 MB / 0.6048 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003328/0.6385, allocations: 215.4 kB / 0.605 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005545/0.639, allocations: 250.1 kB / 0.6053 GB, free: 7.23 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.003032/0.6421, allocations: 1.599 MB / 0.6068 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004207/0.6425, allocations: 242.4 kB / 0.6071 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004163/0.6466, allocations: 2.329 MB / 0.6094 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001117/0.6467, allocations: 31.92 kB / 0.6094 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.6468, allocations: 4.562 kB / 0.6094 GB, free: 3.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.6468, allocations: 7.969 kB / 0.6094 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.659, allocations: 6.088 MB / 0.6153 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.659, allocations: 4.469 kB / 0.6153 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009665/0.66, allocations: 247.6 kB / 0.6156 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007533/0.6607, allocations: 256.6 kB / 0.6158 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.634e-05/0.6608, allocations: 32 kB / 0.6159 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00441/0.6652, allocations: 3.287 MB / 0.6191 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.6652, allocations: 7.812 kB / 0.6191 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005892/0.6711, allocations: 3.608 MB / 0.6226 GB, free: 5.223 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008376/0.672, allocations: 238.4 kB / 0.6228 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/0.6723, allocations: 28 kB / 0.6228 GB, free: 4.961 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008673/0.6732, allocations: 79.03 kB / 0.6229 GB, free: 4.887 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.6734, allocations: 113.6 kB / 0.623 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.6735, allocations: 52 kB / 0.6231 GB, free: 4.727 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00302/0.6766, allocations: 1.676 MB / 0.6247 GB, free: 3.035 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6766, allocations: 288 / 0.6247 GB, free: 3.035 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004029/0.6806, allocations: 0.7031 MB / 0.6254 GB, free: 2.332 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.006192/0.6868, allocations: 4.267 MB / 0.6296 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006253/0.693, allocations: 3.306 MB / 0.6328 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.693, allocations: 0 / 0.6328 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.6951, allocations: 1.095 MB / 0.6339 GB, free: 9.578 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.6978, allocations: 400.1 kB / 0.6343 GB, free: 9.199 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05433/0.7521, allocations: 29.33 MB / 0.6629 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/0.7553, allocations: 2.059 MB / 0.6649 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003188/0.7585, allocations: 1.271 MB / 0.6661 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002101/0.7606, allocations: 1.347 MB / 0.6675 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/0.7606, allocations: 0 / 0.6675 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.109/0.8696, allocations: 51.93 MB / 0.7182 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.98/19.85, allocations: 10.88 kB / 0.7182 GB, free: 0.7227 MB / 0.545 GB " [Timeout remaining time 640] (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: 23.264489316032268] Failed to read output from testmodel.py, exit status != 0: 20.298427024972625 20.310061411 19.853606471 Calling exit ...