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.001901/0.001901, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001689/0.001689, allocations: 212.5 kB / 22.24 MB, free: 4.855 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.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.789 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.05008/0.05008, allocations: 9.237 MB / 321.7 MB, free: 9.848 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",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.002233/0.002233, allocations: 59.91 kB / 447.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1053, allocations: 55.47 MB / 0.4913 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01018/0.1155, allocations: 7.55 MB / 0.4987 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005203/0.1207, allocations: 2.515 MB / 0.5012 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008903/0.1215, allocations: 35.88 kB / 0.5012 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008839/0.1224, allocations: 381.5 kB / 0.5016 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003021/0.1255, allocations: 1.424 MB / 0.503 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.1258, allocations: 151.8 kB / 0.5031 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002762/0.1286, allocations: 2.512 MB / 0.5056 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.1297, allocations: 0.8118 MB / 0.5063 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.1308, allocations: 0.9494 MB / 0.5073 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.1326, allocations: 1.378 MB / 0.5086 GB, free: 5.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003927/0.1329, allocations: 236 kB / 0.5088 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.1343, allocations: 0.7684 MB / 0.5096 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.1354, allocations: 1.238 MB / 0.5108 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.1365, allocations: 1.11 MB / 0.5119 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2095/0.346, allocations: 5.084 MB / 0.5168 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.346, allocations: 3.25 kB / 0.5169 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.346, allocations: 0 / 0.5169 GB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001192/0.3461, allocations: 0 / 0.5169 GB, free: 12.41 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.009928/0.3561, allocations: 4.314 MB / 0.5211 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3561, allocations: 7.812 kB / 0.5211 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007153/0.3568, allocations: 0.5458 MB / 0.5216 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006783/0.3636, allocations: 1.815 MB / 0.5234 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003217/0.3668, allocations: 1.315 MB / 0.5247 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.367, allocations: 149.8 kB / 0.5248 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004894/0.3674, allocations: 195.3 kB / 0.525 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/0.3804, allocations: 8.192 MB / 0.533 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.968e-05/0.3804, allocations: 21.5 kB / 0.533 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.3807, allocations: 92.62 kB / 0.5331 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002894/0.3836, allocations: 1.914 MB / 0.535 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.3977, allocations: 7.418 MB / 0.5422 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03405/0.4317, allocations: 23.41 MB / 0.5651 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005297/0.437, allocations: 1.876 MB / 0.5669 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.4384, allocations: 0.8118 MB / 0.5677 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006168/0.4446, allocations: 2.618 MB / 0.5703 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.4446, allocations: 39.56 kB / 0.5703 GB, free: 12.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.536e-06/0.4446, allocations: 1.969 kB / 0.5703 GB, free: 12.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01129/0.4559, allocations: 4.71 MB / 0.5749 GB, free: 7.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.456, allocations: 68.41 kB / 0.575 GB, free: 7.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/0.4598, allocations: 2.62 MB / 0.5775 GB, free: 4.867 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001598/0.46, allocations: 41.7 kB / 0.5776 GB, free: 4.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.4616, allocations: 2.163 MB / 0.5797 GB, free: 2.668 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005508/0.4621, allocations: 0.5539 MB / 0.5802 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.4632, allocations: 0.7506 MB / 0.5809 GB, free: 1.363 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4633, allocations: 305.1 kB / 0.5812 GB, free: 1.062 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002163/0.4654, allocations: 1.241 MB / 0.5824 GB, free: 15.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003967/0.4694, allocations: 3.301 MB / 0.5857 GB, free: 11.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006316/0.4757, allocations: 4.887 MB / 0.5904 GB, free: 5.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.173e-05/0.4758, allocations: 20 kB / 0.5905 GB, free: 5.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008532/0.4843, allocations: 4.643 MB / 0.595 GB, free: 1.539 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.4844, allocations: 36 kB / 0.595 GB, free: 1.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-05/0.4845, allocations: 72 kB / 0.5951 GB, free: 1.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006043/0.4851, allocations: 233.3 kB / 0.5953 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.4877, allocations: 0.827 MB / 0.5961 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.4912, allocations: 2.736 MB / 0.5988 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002671/0.4939, allocations: 179.9 kB / 0.599 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004573/0.4943, allocations: 224 kB / 0.5992 GB, free: 13.15 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.002608/0.4969, allocations: 1.584 MB / 0.6007 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000401/0.4973, allocations: 226 kB / 0.6009 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/0.5008, allocations: 1.928 MB / 0.6028 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000111/0.5009, allocations: 27.81 kB / 0.6029 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5009, allocations: 3.938 kB / 0.6029 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/0.5009, allocations: 21.41 kB / 0.6029 GB, free: 9.348 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.5115, allocations: 5.495 MB / 0.6082 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.5115, allocations: 4 kB / 0.6083 GB, free: 3.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008914/0.5124, allocations: 211.7 kB / 0.6085 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004098/0.5128, allocations: 136.1 kB / 0.6086 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.422e-05/0.5129, allocations: 31.98 kB / 0.6086 GB, free: 3.383 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002848/0.5158, allocations: 2.406 MB / 0.611 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.5158, allocations: 11.88 kB / 0.611 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004877/0.5206, allocations: 3.06 MB / 0.614 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007959/0.5214, allocations: 230.5 kB / 0.6142 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.5217, allocations: 31.92 kB / 0.6142 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008021/0.5225, allocations: 73.25 kB / 0.6143 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.5227, allocations: 96.36 kB / 0.6144 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/0.5228, allocations: 40 kB / 0.6144 GB, free: 13.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002588/0.5254, allocations: 1.615 MB / 0.616 GB, free: 11.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5254, allocations: 0 / 0.616 GB, free: 11.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00283/0.5282, allocations: 0.6405 MB / 0.6166 GB, free: 11.01 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.005392/0.5336, allocations: 3.701 MB / 0.6202 GB, free: 7.238 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005328/0.539, allocations: 2.931 MB / 0.6231 GB, free: 4.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.539, allocations: 0 / 0.6231 GB, free: 4.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.5405, allocations: 0.9436 MB / 0.624 GB, free: 3.359 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.5426, allocations: 421.9 kB / 0.6244 GB, free: 2.961 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04306/0.5857, allocations: 26.85 MB / 0.6506 GB, free: 5.371 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/0.5888, allocations: 2.035 MB / 0.6526 GB, free: 3.305 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002723/0.5915, allocations: 1.131 MB / 0.6537 GB, free: 2.172 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001854/0.5933, allocations: 1.304 MB / 0.655 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5933, allocations: 4 kB / 0.655 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09949/0.6928, allocations: 45.87 MB / 0.6998 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/14.98, allocations: 3.438 kB / 0.6998 GB, free: 3.48 MB / 0.5294 GB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PendulumExcited_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.801500766072422] Failed to read output from testmodel.py, exit status != 0: 15.121201551053673 15.138687169 14.789178426 Calling exit ...