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.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.001574/0.001574, allocations: 108.8 kB / 16.45 MB, free: 6.488 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.0014/0.0014, allocations: 196.6 kB / 19.41 MB, free: 3.68 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.347/1.347, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.0474/0.0474, allocations: 9.249 MB / 311.9 MB, free: 0.7539 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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 71.88 kB / 434 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09895, allocations: 54.26 MB / 488.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008807/0.1078, allocations: 7.046 MB / 495.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004713/0.1125, allocations: 2.367 MB / 497.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006649/0.1131, allocations: 35.94 kB / 497.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007347/0.1139, allocations: 318 kB / 498.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002768/0.1166, allocations: 1.296 MB / 499.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.1169, allocations: 87.83 kB / 499.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002598/0.1195, allocations: 2.16 MB / 0.4898 GB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008325/0.1203, allocations: 0.6021 MB / 0.4904 GB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009458/0.1213, allocations: 0.7587 MB / 0.4912 GB, free: 9.098 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.1228, allocations: 1.238 MB / 0.4924 GB, free: 7.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.1231, allocations: 200 kB / 0.4926 GB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.1245, allocations: 0.8347 MB / 0.4934 GB, free: 6.824 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.1255, allocations: 1.087 MB / 0.4944 GB, free: 5.734 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.1268, allocations: 1.363 MB / 0.4958 GB, free: 4.363 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005199/0.132, allocations: 4.502 MB / 0.5002 GB, free: 15.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.132, allocations: 3.938 kB / 0.5002 GB, free: 15.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.132, allocations: 4 kB / 0.5002 GB, free: 15.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.905e-05/0.1321, allocations: 0 / 0.5002 GB, free: 15.84 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.007982/0.1401, allocations: 3.437 MB / 0.5035 GB, free: 12.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.1401, allocations: 8.031 kB / 0.5035 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007219/0.1408, allocations: 484.1 kB / 0.504 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006325/0.1472, allocations: 1.734 MB / 0.5057 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002739/0.1499, allocations: 1.194 MB / 0.5069 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.15, allocations: 119.3 kB / 0.507 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.1504, allocations: 160 kB / 0.5071 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.1611, allocations: 7.212 MB / 0.5142 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-05/0.1612, allocations: 23.81 kB / 0.5142 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/0.1615, allocations: 75.88 kB / 0.5143 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1882/0.3496, allocations: 1.731 MB / 0.516 GB, free: 33.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/0.3621, allocations: 6.591 MB / 0.5224 GB, free: 31.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/0.39, allocations: 21.16 MB / 0.5431 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003514/0.3935, allocations: 1.951 MB / 0.545 GB, free: 16.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008294/0.3943, allocations: 0.6335 MB / 0.5456 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004413/0.3987, allocations: 3.276 MB / 0.5488 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.3988, allocations: 47.12 kB / 0.5488 GB, free: 13.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 3.627e-06/0.3988, allocations: 0 / 0.5488 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.009416/0.4082, allocations: 5.569 MB / 0.5543 GB, free: 8.586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.4082, allocations: 68.28 kB / 0.5543 GB, free: 8.508 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.4106, allocations: 2.278 MB / 0.5565 GB, free: 6.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.4107, allocations: 41.7 kB / 0.5566 GB, free: 6.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/0.4114, allocations: 1.909 MB / 0.5585 GB, free: 4.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002508/0.4116, allocations: 479.7 kB / 0.5589 GB, free: 3.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006269/0.4123, allocations: 0.6672 MB / 0.5596 GB, free: 3.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.261e-05/0.4123, allocations: 305.1 kB / 0.5599 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4136, allocations: 1.096 MB / 0.5609 GB, free: 1.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002828/0.4165, allocations: 2.962 MB / 0.5638 GB, free: 13.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005668/0.4221, allocations: 4.381 MB / 0.5681 GB, free: 8.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.311e-05/0.4222, allocations: 24 kB / 0.5681 GB, free: 8.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.006907/0.4291, allocations: 4.135 MB / 0.5722 GB, free: 4.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.4291, allocations: 36 kB / 0.5722 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.499e-05/0.4292, allocations: 64 kB / 0.5722 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004969/0.4297, allocations: 208.4 kB / 0.5724 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/0.4318, allocations: 0.7213 MB / 0.5732 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.4352, allocations: 2.704 MB / 0.5758 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.4372, allocations: 163.9 kB / 0.5759 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/0.4375, allocations: 199.9 kB / 0.5761 GB, free: 148 kB / 398.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.00218/0.4397, allocations: 1.427 MB / 0.5775 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.44, allocations: 194.8 kB / 0.5777 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002786/0.4428, allocations: 1.616 MB / 0.5793 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.4429, allocations: 27.91 kB / 0.5793 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4429, allocations: 4.562 kB / 0.5793 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.4429, allocations: 3.984 kB / 0.5793 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00882/0.4517, allocations: 4.863 MB / 0.5841 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4517, allocations: 4 kB / 0.5841 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006816/0.4524, allocations: 162.2 kB / 0.5842 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003611/0.4527, allocations: 116.8 kB / 0.5844 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.4528, allocations: 30.19 kB / 0.5844 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.4553, allocations: 2.163 MB / 0.5865 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4553, allocations: 8.062 kB / 0.5865 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/0.4591, allocations: 2.552 MB / 0.589 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005893/0.4597, allocations: 279.9 kB / 0.5893 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.4599, allocations: 20 kB / 0.5893 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.4605, allocations: 51.5 kB / 0.5893 GB, free: 2.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.4607, allocations: 68.8 kB / 0.5894 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.83e-05/0.4608, allocations: 42.02 kB / 0.5894 GB, free: 2.215 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002487/0.4632, allocations: 1.476 MB / 0.5909 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4632, allocations: 0 / 0.5909 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002531/0.4658, allocations: 0.5663 MB / 0.5914 GB, free: 152 kB / 414.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.004297/0.4701, allocations: 3.186 MB / 0.5945 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004825/0.4749, allocations: 2.563 MB / 0.597 GB, free: 10.35 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.4749, allocations: 448 / 0.597 GB, free: 10.35 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.4761, allocations: 0.7734 MB / 0.5978 GB, free: 9.566 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.478, allocations: 335.7 kB / 0.5981 GB, free: 9.246 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03835/0.5163, allocations: 23.64 MB / 0.6212 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003403/0.5197, allocations: 2.36 MB / 0.6235 GB, free: 12.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002644/0.5224, allocations: 1.036 MB / 0.6245 GB, free: 11.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/0.5241, allocations: 1.093 MB / 0.6256 GB, free: 10.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5241, allocations: 4 kB / 0.6256 GB, free: 10.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08876/0.6129, allocations: 39.72 MB / 0.6644 GB, free: 3.094 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.02, allocations: 0 / 0.6644 GB, free: 3.094 MB / 494.1 MB " [Timeout remaining time 645] (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: 17.48921985272318] Failed to read output from testmodel.py, exit status != 0: 15.122137653175741 15.135798085 15.000942155 Calling exit ...