Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.00142/0.00142, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001565/0.001565, allocations: 212.5 kB / 22.25 MB, free: 5.086 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.67/1.67, allocations: 230.6 MB / 256 MB, free: 8.008 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.05255/0.05255, allocations: 9.231 MB / 321.7 MB, free: 10.05 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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.002241/0.002241, allocations: 71.89 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1415, allocations: 55.47 MB / 0.4914 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01261/0.1541, allocations: 8.386 MB / 0.4996 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006869/0.161, allocations: 2.647 MB / 0.5022 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.1626, allocations: 39.88 kB / 0.5022 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.1637, allocations: 373.4 kB / 0.5026 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004521/0.1683, allocations: 1.44 MB / 0.504 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.1687, allocations: 135.8 kB / 0.5041 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004261/0.173, allocations: 2.473 MB / 0.5065 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.1744, allocations: 0.7455 MB / 0.5073 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001499/0.1759, allocations: 0.9027 MB / 0.5081 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002208/0.1781, allocations: 1.413 MB / 0.5095 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005921/0.1787, allocations: 228 kB / 0.5097 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.1804, allocations: 0.8932 MB / 0.5106 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.1818, allocations: 1.211 MB / 0.5118 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.1837, allocations: 1.538 MB / 0.5133 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3332/0.5169, allocations: 4.941 MB / 0.5181 GB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.5169, allocations: 0 / 0.5181 GB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5169, allocations: 1.062 kB / 0.5181 GB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001954/0.5171, allocations: 0 / 0.5181 GB, free: 12.37 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01325/0.5303, allocations: 3.862 MB / 0.5219 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5304, allocations: 9.656 kB / 0.5219 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001093/0.5315, allocations: 0.5377 MB / 0.5224 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007744/0.5392, allocations: 1.783 MB / 0.5242 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004758/0.544, allocations: 1.291 MB / 0.5254 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003834/0.5443, allocations: 145.4 kB / 0.5256 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006964/0.545, allocations: 195.5 kB / 0.5258 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.5624, allocations: 7.915 MB / 0.5335 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000252/0.5627, allocations: 29.58 kB / 0.5335 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003077/0.563, allocations: 91.95 kB / 0.5336 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/0.5661, allocations: 1.84 MB / 0.5354 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01715/0.5833, allocations: 7.125 MB / 0.5424 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04463/0.6279, allocations: 23.8 MB / 0.5656 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005682/0.6336, allocations: 1.843 MB / 0.5674 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.635, allocations: 0.7673 MB / 0.5681 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0085/0.6435, allocations: 3.182 MB / 0.5713 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.6435, allocations: 43.56 kB / 0.5713 GB, free: 11.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.807e-06/0.6435, allocations: 4 kB / 0.5713 GB, free: 11.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01708/0.6606, allocations: 6.865 MB / 0.578 GB, free: 4.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.6606, allocations: 64.72 kB / 0.5781 GB, free: 4.742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00508/0.6657, allocations: 2.612 MB / 0.5806 GB, free: 2.102 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.6659, allocations: 45.7 kB / 0.5807 GB, free: 2.051 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002023/0.6679, allocations: 2.142 MB / 0.5828 GB, free: 15.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007437/0.6686, allocations: 0.5904 MB / 0.5833 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.6701, allocations: 0.7746 MB / 0.5841 GB, free: 14.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6702, allocations: 301.1 kB / 0.5844 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/0.6727, allocations: 1.276 MB / 0.5856 GB, free: 12.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004342/0.6771, allocations: 3.376 MB / 0.5889 GB, free: 8.621 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007235/0.6843, allocations: 4.999 MB / 0.5938 GB, free: 2.906 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.799e-05/0.6844, allocations: 21.62 kB / 0.5938 GB, free: 2.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01032/0.6947, allocations: 4.833 MB / 0.5985 GB, free: 14.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.954e-05/0.6948, allocations: 36 kB / 0.5986 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.252e-05/0.6948, allocations: 76 kB / 0.5986 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.6959, allocations: 347.2 kB / 0.599 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/0.6989, allocations: 0.8499 MB / 0.5998 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005736/0.7046, allocations: 3.542 MB / 0.6033 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/0.7084, allocations: 198 kB / 0.6035 GB, free: 9.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000657/0.7091, allocations: 224 kB / 0.6037 GB, free: 8.918 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (463): * Single equations (assignments): 458 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003631/0.7127, allocations: 1.554 MB / 0.6052 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/0.7132, allocations: 230.5 kB / 0.6054 GB, free: 7.125 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003983/0.7172, allocations: 1.997 MB / 0.6074 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/0.7173, allocations: 28.55 kB / 0.6074 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.7173, allocations: 4 kB / 0.6074 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.7173, allocations: 7.969 kB / 0.6074 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.7291, allocations: 5.607 MB / 0.6129 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.7291, allocations: 0 / 0.6129 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008553/0.73, allocations: 208.9 kB / 0.6131 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006743/0.7307, allocations: 244.6 kB / 0.6133 GB, free: 14.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.277e-05/0.7308, allocations: 26.34 kB / 0.6133 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.7348, allocations: 2.849 MB / 0.6161 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.7348, allocations: 7.938 kB / 0.6161 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/0.7406, allocations: 3.108 MB / 0.6192 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000925/0.7416, allocations: 226.5 kB / 0.6194 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003037/0.7419, allocations: 24 kB / 0.6194 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009748/0.7428, allocations: 67.92 kB / 0.6195 GB, free: 8.488 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.7431, allocations: 93.05 kB / 0.6195 GB, free: 8.398 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.7432, allocations: 46.88 kB / 0.6196 GB, free: 8.355 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003431/0.7466, allocations: 1.675 MB / 0.6212 GB, free: 6.664 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7466, allocations: 3.938 kB / 0.6212 GB, free: 6.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003633/0.7502, allocations: 0.6717 MB / 0.6219 GB, free: 5.988 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006001/0.7562, allocations: 3.735 MB / 0.6255 GB, free: 2.191 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006158/0.7624, allocations: 3.036 MB / 0.6285 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7624, allocations: 0 / 0.6285 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.7642, allocations: 0.9666 MB / 0.6294 GB, free: 14.18 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.7664, allocations: 388.4 kB / 0.6298 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05194/0.8184, allocations: 27.48 MB / 0.6566 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00377/0.8222, allocations: 2.564 MB / 0.6592 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003266/0.8254, allocations: 1.176 MB / 0.6603 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/0.8277, allocations: 1.284 MB / 0.6616 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of SimCode: time 2.645e-06/0.8277, allocations: 4 kB / 0.6616 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1341/0.9619, allocations: 50.28 MB / 0.7107 GB, free: 8.551 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.96/18.92, allocations: 2.5 kB / 0.7107 GB, free: 8.551 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrab_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.414717625000776] Failed to read output from testmodel.py, exit status != 0: 19.069469835001655 19.366797386 18.8465566 Calling exit ...