Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.001368/0.001368, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001659/0.001659, allocations: 212.4 kB / 22.24 MB, free: 5.262 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.457/1.457, allocations: 230.6 MB / 256 MB, free: 7.781 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.05029/0.05029, allocations: 9.242 MB / 321.7 MB, free: 9.84 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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.002116/0.002116, allocations: 71.91 kB / 447.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1094, allocations: 55.47 MB / 0.4913 GB, free: 7.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009651/0.1191, allocations: 7.423 MB / 0.4986 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005342/0.1244, allocations: 2.507 MB / 0.501 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009632/0.1254, allocations: 39.88 kB / 0.5011 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008898/0.1263, allocations: 381.4 kB / 0.5014 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003507/0.1298, allocations: 1.463 MB / 0.5029 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.1302, allocations: 139.7 kB / 0.503 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003287/0.1335, allocations: 2.519 MB / 0.5055 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.1347, allocations: 0.738 MB / 0.5062 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001349/0.1361, allocations: 0.9261 MB / 0.5071 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.138, allocations: 1.37 MB / 0.5084 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004295/0.1384, allocations: 236 kB / 0.5087 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001503/0.1399, allocations: 0.7645 MB / 0.5094 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.1412, allocations: 1.238 MB / 0.5106 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.1426, allocations: 1.098 MB / 0.5117 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2291/0.3716, allocations: 5.031 MB / 0.5166 GB, free: 12.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3717, allocations: 0 / 0.5166 GB, free: 12.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3717, allocations: 0 / 0.5166 GB, free: 12.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001/0.3718, allocations: 1.906 kB / 0.5166 GB, free: 12.46 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01006/0.3818, allocations: 4.403 MB / 0.5209 GB, free: 11.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3819, allocations: 9.906 kB / 0.5209 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006527/0.3825, allocations: 0.5448 MB / 0.5214 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006374/0.3889, allocations: 1.782 MB / 0.5232 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00291/0.3918, allocations: 1.313 MB / 0.5245 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3919, allocations: 154.5 kB / 0.5246 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/0.3924, allocations: 200 kB / 0.5248 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01262/0.405, allocations: 8.257 MB / 0.5329 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.252e-05/0.4051, allocations: 23.81 kB / 0.5329 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003035/0.4054, allocations: 93.3 kB / 0.533 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00278/0.4082, allocations: 1.91 MB / 0.5348 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01295/0.4211, allocations: 7.401 MB / 0.5421 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03301/0.4541, allocations: 24.18 MB / 0.5657 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006316/0.4604, allocations: 2.077 MB / 0.5677 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.4619, allocations: 0.8602 MB / 0.5685 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006529/0.4685, allocations: 2.899 MB / 0.5714 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.503e-05/0.4685, allocations: 51.5 kB / 0.5714 GB, free: 10.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.777e-06/0.4685, allocations: 0 / 0.5714 GB, free: 10.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01385/0.4824, allocations: 5.507 MB / 0.5768 GB, free: 5.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.4824, allocations: 68.72 kB / 0.5769 GB, free: 5.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004141/0.4866, allocations: 2.759 MB / 0.5796 GB, free: 2.656 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.4867, allocations: 52.75 kB / 0.5796 GB, free: 2.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.4884, allocations: 2.178 MB / 0.5817 GB, free: 444 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000643/0.489, allocations: 0.6722 MB / 0.5824 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/0.4902, allocations: 0.8286 MB / 0.5832 GB, free: 14.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4903, allocations: 309.1 kB / 0.5835 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/0.4927, allocations: 1.371 MB / 0.5848 GB, free: 13.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004315/0.497, allocations: 3.62 MB / 0.5884 GB, free: 8.539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007391/0.5044, allocations: 5.421 MB / 0.5937 GB, free: 2.352 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.865e-05/0.5044, allocations: 24 kB / 0.5937 GB, free: 2.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009701/0.5141, allocations: 5.222 MB / 0.5988 GB, free: 13.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.5142, allocations: 43.81 kB / 0.5988 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.228e-05/0.5143, allocations: 76 kB / 0.5989 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009336/0.5152, allocations: 371.9 kB / 0.5993 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/0.5181, allocations: 0.9123 MB / 0.6002 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/0.524, allocations: 4.034 MB / 0.6041 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002718/0.5267, allocations: 210.8 kB / 0.6043 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004255/0.5271, allocations: 244 kB / 0.6045 GB, free: 7.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (498): * Single equations (assignments): 493 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00263/0.5298, allocations: 1.604 MB / 0.6061 GB, free: 5.723 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004001/0.5302, allocations: 242.4 kB / 0.6063 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004247/0.5344, allocations: 2.33 MB / 0.6086 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/0.5345, allocations: 32.48 kB / 0.6086 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.5345, allocations: 5.062 kB / 0.6086 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.5345, allocations: 3.984 kB / 0.6086 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.5458, allocations: 6.09 MB / 0.6146 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.5458, allocations: 7.984 kB / 0.6146 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009545/0.5467, allocations: 240.5 kB / 0.6148 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007029/0.5474, allocations: 256.6 kB / 0.6151 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.343e-05/0.5475, allocations: 32 kB / 0.6151 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004486/0.552, allocations: 3.288 MB / 0.6183 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/0.552, allocations: 4 kB / 0.6183 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005763/0.5578, allocations: 3.608 MB / 0.6218 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006547/0.5584, allocations: 243.1 kB / 0.6221 GB, free: 5.094 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.5587, allocations: 24 kB / 0.6221 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008456/0.5596, allocations: 83.02 kB / 0.6222 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.5598, allocations: 113 kB / 0.6223 GB, free: 4.883 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.5599, allocations: 52 kB / 0.6223 GB, free: 4.832 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002779/0.5626, allocations: 1.68 MB / 0.624 GB, free: 3.137 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5626, allocations: 0 / 0.624 GB, free: 3.137 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00291/0.5656, allocations: 0.7108 MB / 0.6247 GB, free: 2.426 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006152/0.5717, allocations: 4.255 MB / 0.6288 GB, free: 14.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005876/0.5776, allocations: 3.309 MB / 0.632 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.5776, allocations: 1.125 kB / 0.6321 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.5793, allocations: 1.101 MB / 0.6331 GB, free: 9.684 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.5813, allocations: 409.7 kB / 0.6335 GB, free: 9.297 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04605/0.6273, allocations: 29.32 MB / 0.6621 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003023/0.6304, allocations: 2.053 MB / 0.6641 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002956/0.6333, allocations: 1.275 MB / 0.6654 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/0.6353, allocations: 1.343 MB / 0.6667 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.6353, allocations: 0 / 0.6667 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/0.7396, allocations: 50.36 MB / 0.7159 GB, free: 2.379 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.46, allocations: 3.938 kB / 0.7159 GB, free: 2.375 MB / 0.545 GB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.DoublePendulum_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_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.43652948597446] Failed to read output from testmodel.py, exit status != 0: 15.608538147993386 15.829282911 15.454748289 Calling exit ...