Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.002427/0.002427, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002451/0.002451, allocations: 214.9 kB / 23.04 MB, free: 5.07 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.581/1.581, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.05046/0.05046, allocations: 9.241 MB / 322.5 MB, free: 10.02 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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.002115/0.002115, allocations: 67.91 kB / 448.5 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1142, allocations: 55.46 MB / 0.4922 GB, free: 7.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01083/0.1251, allocations: 8.609 MB / 0.5006 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006175/0.1312, allocations: 2.663 MB / 0.5032 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1326, allocations: 35.88 kB / 0.5032 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.1336, allocations: 385.4 kB / 0.5036 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003663/0.1373, allocations: 1.42 MB / 0.505 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004762/0.1378, allocations: 163.7 kB / 0.5051 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003532/0.1413, allocations: 2.515 MB / 0.5076 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.1426, allocations: 0.8236 MB / 0.5084 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.144, allocations: 0.9339 MB / 0.5093 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002235/0.1463, allocations: 1.444 MB / 0.5107 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006256/0.1469, allocations: 240 kB / 0.5109 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00179/0.1487, allocations: 0.8854 MB / 0.5118 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.15, allocations: 1.242 MB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.1516, allocations: 1.577 MB / 0.5146 GB, free: 472 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2655/0.417, allocations: 5.063 MB / 0.5195 GB, free: 11.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.417, allocations: 2.625 kB / 0.5195 GB, free: 11.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.417, allocations: 2.188 kB / 0.5195 GB, free: 11.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001815/0.4172, allocations: 0 / 0.5195 GB, free: 11.94 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01366/0.4309, allocations: 4.318 MB / 0.5237 GB, free: 10.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.686e-05/0.431, allocations: 11.73 kB / 0.5237 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001583/0.4311, allocations: 71.5 kB / 0.5238 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001384/0.4325, allocations: 0.5521 MB / 0.5243 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007809/0.4403, allocations: 1.808 MB / 0.5261 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.4442, allocations: 1.307 MB / 0.5274 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.4444, allocations: 152.4 kB / 0.5275 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009196/0.4453, allocations: 187.4 kB / 0.5277 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.4625, allocations: 8.194 MB / 0.5357 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.173e-05/0.4626, allocations: 20.97 kB / 0.5357 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003294/0.4629, allocations: 92.66 kB / 0.5358 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003596/0.4665, allocations: 1.915 MB / 0.5377 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.484, allocations: 7.431 MB / 0.5449 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04527/0.5293, allocations: 24.79 MB / 0.5691 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006112/0.5354, allocations: 1.874 MB / 0.571 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.537, allocations: 0.8079 MB / 0.5718 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00691/0.5439, allocations: 2.863 MB / 0.5746 GB, free: 8.629 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.544, allocations: 43.56 kB / 0.5746 GB, free: 8.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 4.278e-06/0.544, allocations: 0 / 0.5746 GB, free: 8.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01269/0.5566, allocations: 4.703 MB / 0.5792 GB, free: 3.895 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.5567, allocations: 64.41 kB / 0.5793 GB, free: 3.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005315/0.562, allocations: 2.509 MB / 0.5817 GB, free: 1.281 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.5622, allocations: 41.7 kB / 0.5817 GB, free: 1.234 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5643, allocations: 2.157 MB / 0.5839 GB, free: 15.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008581/0.5651, allocations: 0.5515 MB / 0.5844 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001809/0.5669, allocations: 0.7584 MB / 0.5851 GB, free: 13.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.5671, allocations: 301.1 kB / 0.5854 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002618/0.5697, allocations: 1.233 MB / 0.5866 GB, free: 12.24 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004632/0.5744, allocations: 3.304 MB / 0.5899 GB, free: 7.965 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007544/0.5819, allocations: 4.886 MB / 0.5946 GB, free: 2.371 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-05/0.582, allocations: 26.62 kB / 0.5946 GB, free: 2.348 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01012/0.5921, allocations: 4.633 MB / 0.5992 GB, free: 13.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.485e-05/0.5922, allocations: 36 kB / 0.5992 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.5923, allocations: 72 kB / 0.5993 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000659/0.5929, allocations: 232.8 kB / 0.5995 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003006/0.596, allocations: 0.8265 MB / 0.6003 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003921/0.5999, allocations: 2.752 MB / 0.603 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002993/0.6029, allocations: 188.9 kB / 0.6032 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006662/0.6035, allocations: 226.8 kB / 0.6034 GB, free: 9.539 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003144/0.6067, allocations: 1.579 MB / 0.6049 GB, free: 7.949 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004989/0.6072, allocations: 226.5 kB / 0.6051 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004019/0.6112, allocations: 1.931 MB / 0.607 GB, free: 5.785 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001144/0.6113, allocations: 28.64 kB / 0.6071 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6113, allocations: 3.938 kB / 0.6071 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.6113, allocations: 7.969 kB / 0.6071 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.6243, allocations: 5.777 MB / 0.6127 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.6243, allocations: 8.062 kB / 0.6127 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000987/0.6253, allocations: 219.7 kB / 0.6129 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004242/0.6257, allocations: 134.1 kB / 0.6131 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.6258, allocations: 35.98 kB / 0.6131 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003092/0.6289, allocations: 2.416 MB / 0.6155 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/0.6289, allocations: 7.938 kB / 0.6155 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005342/0.6343, allocations: 3.065 MB / 0.6185 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.6353, allocations: 230.4 kB / 0.6187 GB, free: 9.586 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006731/0.636, allocations: 23.14 kB / 0.6187 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.6373, allocations: 67.92 kB / 0.6188 GB, free: 9.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/0.6375, allocations: 100.8 kB / 0.6189 GB, free: 9.402 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.6377, allocations: 45.77 kB / 0.6189 GB, free: 9.359 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004282/0.6419, allocations: 1.608 MB / 0.6205 GB, free: 7.734 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6419, allocations: 4 kB / 0.6205 GB, free: 7.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004104/0.646, allocations: 0.6432 MB / 0.6211 GB, free: 7.09 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006349/0.6524, allocations: 3.692 MB / 0.6247 GB, free: 3.328 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006246/0.6586, allocations: 2.936 MB / 0.6276 GB, free: 416 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.6586, allocations: 0 / 0.6276 GB, free: 416 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.6603, allocations: 0.9524 MB / 0.6285 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.6632, allocations: 415.4 kB / 0.6289 GB, free: 15.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05398/0.7172, allocations: 26.86 MB / 0.6551 GB, free: 1.445 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/0.7203, allocations: 2.594 MB / 0.6577 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002761/0.7231, allocations: 1.14 MB / 0.6588 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/0.725, allocations: 1.296 MB / 0.66 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of SimCode: time 1.733e-06/0.725, allocations: 0 / 0.66 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1286/0.8537, allocations: 48.39 MB / 0.7073 GB, free: 12.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.44/19.29, allocations: 8.062 kB / 0.7073 GB, free: 12.25 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.633622349007055] Failed to read output from testmodel.py, exit status != 0: 19.494948300998658 19.748238542 19.103975846 Calling exit ...