Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.001294/0.001294, allocations: 97.31 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.001511/0.001511, allocations: 220 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.578/1.578, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.04955/0.04955, allocations: 9.244 MB / 322.5 MB, free: 9.852 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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.001917/0.001917, allocations: 63.89 kB / 448.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1199, allocations: 55.46 MB / 0.4921 GB, free: 7.043 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008634/0.1286, allocations: 6.189 MB / 0.4981 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004753/0.1333, allocations: 2.262 MB / 0.5004 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007688/0.1341, allocations: 27.94 kB / 0.5004 GB, free: 14.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009519/0.1351, allocations: 325.9 kB / 0.5007 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003292/0.1383, allocations: 1.3 MB / 0.502 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004121/0.1388, allocations: 79.84 kB / 0.502 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.1419, allocations: 2.145 MB / 0.5041 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.1431, allocations: 0.5905 MB / 0.5047 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.1444, allocations: 0.7705 MB / 0.5055 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001904/0.1463, allocations: 1.238 MB / 0.5067 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004396/0.1467, allocations: 200 kB / 0.5069 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.1481, allocations: 0.7372 MB / 0.5076 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.1491, allocations: 1.071 MB / 0.5086 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.1502, allocations: 0.9352 MB / 0.5095 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005668/0.1558, allocations: 4.486 MB / 0.5139 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.1559, allocations: 0 / 0.5139 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1559, allocations: 4 kB / 0.5139 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.585e-05/0.1559, allocations: 0 / 0.5139 GB, free: 0.5938 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.246/0.402, allocations: 3.355 MB / 0.5172 GB, free: 25.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.402, allocations: 10.88 kB / 0.5172 GB, free: 25.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001007/0.4021, allocations: 64.2 kB / 0.5173 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006831/0.4028, allocations: 482.2 kB / 0.5177 GB, free: 24.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006481/0.4093, allocations: 1.731 MB / 0.5194 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.412, allocations: 1.156 MB / 0.5206 GB, free: 24.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.4121, allocations: 119.2 kB / 0.5207 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005752/0.4127, allocations: 163 kB / 0.5208 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/0.4266, allocations: 7.212 MB / 0.5279 GB, free: 22.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.458e-05/0.4267, allocations: 15.45 kB / 0.5279 GB, free: 22.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/0.427, allocations: 74.7 kB / 0.5279 GB, free: 22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003967/0.4309, allocations: 1.742 MB / 0.5296 GB, free: 21.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.4451, allocations: 6.584 MB / 0.5361 GB, free: 19.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03022/0.4754, allocations: 19.87 MB / 0.5555 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004142/0.4795, allocations: 1.507 MB / 0.557 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.4807, allocations: 0.6311 MB / 0.5576 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005716/0.4864, allocations: 2.081 MB / 0.5596 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.54e-05/0.4865, allocations: 39.22 kB / 0.5596 GB, free: 12.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 5.851e-06/0.4865, allocations: 1.312 kB / 0.5596 GB, free: 12.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01324/0.4997, allocations: 5.432 MB / 0.5649 GB, free: 7.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.4998, allocations: 64.41 kB / 0.565 GB, free: 7.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004372/0.5042, allocations: 2.27 MB / 0.5672 GB, free: 4.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.5043, allocations: 46.94 kB / 0.5673 GB, free: 4.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/0.5061, allocations: 1.911 MB / 0.5691 GB, free: 3.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005685/0.5067, allocations: 476.2 kB / 0.5696 GB, free: 2.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/0.5079, allocations: 0.675 MB / 0.5703 GB, free: 1.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.508, allocations: 305.1 kB / 0.5705 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002183/0.5102, allocations: 1.096 MB / 0.5716 GB, free: 464 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003996/0.5142, allocations: 2.967 MB / 0.5745 GB, free: 12.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006414/0.5206, allocations: 4.371 MB / 0.5788 GB, free: 7.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.448e-05/0.5207, allocations: 20 kB / 0.5788 GB, free: 7.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.008247/0.529, allocations: 4.139 MB / 0.5828 GB, free: 3.125 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.189e-05/0.529, allocations: 35.94 kB / 0.5829 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/0.5292, allocations: 69.81 kB / 0.5829 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006453/0.5298, allocations: 200.7 kB / 0.5831 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/0.5323, allocations: 0.7357 MB / 0.5838 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003543/0.5359, allocations: 2.581 MB / 0.5864 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00249/0.5384, allocations: 171.8 kB / 0.5865 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004306/0.5388, allocations: 196 kB / 0.5867 GB, free: 15.04 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002494/0.5413, allocations: 1.432 MB / 0.5881 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003968/0.5417, allocations: 195.2 kB / 0.5883 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.5451, allocations: 1.615 MB / 0.5899 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001137/0.5452, allocations: 27.97 kB / 0.5899 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.5453, allocations: 0 / 0.5899 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.5453, allocations: 9.203 kB / 0.5899 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.5553, allocations: 4.568 MB / 0.5944 GB, free: 7.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.5553, allocations: 3.984 kB / 0.5944 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007331/0.5561, allocations: 155.8 kB / 0.5945 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/0.5565, allocations: 121 kB / 0.5946 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.995e-05/0.5566, allocations: 24.88 kB / 0.5947 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002735/0.5593, allocations: 2.055 MB / 0.5967 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.5593, allocations: 4.031 kB / 0.5967 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004391/0.5637, allocations: 2.561 MB / 0.5992 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000619/0.5643, allocations: 198.7 kB / 0.5994 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.5647, allocations: 16 kB / 0.5994 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009692/0.5657, allocations: 63.78 kB / 0.5994 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.5658, allocations: 69.72 kB / 0.5995 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.366e-05/0.5659, allocations: 39.98 kB / 0.5996 GB, free: 1.602 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002886/0.5688, allocations: 1.472 MB / 0.601 GB, free: 108 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5688, allocations: 0 / 0.601 GB, free: 108 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002948/0.5718, allocations: 0.5585 MB / 0.6015 GB, free: 15.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004844/0.5766, allocations: 3.192 MB / 0.6047 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005195/0.5818, allocations: 2.563 MB / 0.6072 GB, free: 9.723 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.5818, allocations: 4 kB / 0.6072 GB, free: 9.719 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.5832, allocations: 0.7708 MB / 0.6079 GB, free: 8.934 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.5853, allocations: 337.5 kB / 0.6082 GB, free: 8.609 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05015/0.6355, allocations: 23.68 MB / 0.6314 GB, free: 14.43 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003239/0.6387, allocations: 1.795 MB / 0.6331 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002631/0.6414, allocations: 1.035 MB / 0.6341 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/0.6431, allocations: 1.097 MB / 0.6352 GB, free: 10.48 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6431, allocations: 0 / 0.6352 GB, free: 10.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09234/0.7355, allocations: 41.35 MB / 0.6756 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.54/17.28, allocations: 3.094 kB / 0.6756 GB, free: 1.613 MB / 0.4981 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.39331597997807] Failed to read output from testmodel.py, exit status != 0: 17.508569653960876 17.536276852 17.374859909 Calling exit ...