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.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.0008003/0.0008003, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001438/0.001438, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8934/0.8934, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.02894/0.02894, allocations: 7.13 MB / 266.3 MB, free: 6.297 MB / 250.7 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.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 3.917e-06/3.917e-06, allocations: 4 kB / 392.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.583e-05, allocations: 2.281 kB / 392.4 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.006216/0.006242, allocations: 6.207 MB / 398.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.009491, allocations: 2.273 MB / 400.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004991/0.00999, allocations: 27.94 kB / 400.9 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005411/0.01053, allocations: 325.9 kB / 401.2 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.01239, allocations: 1.35 MB / 402.6 MB, free: 9.742 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.01258, allocations: 83.7 kB / 402.6 MB, free: 9.66 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.01434, allocations: 2.181 MB / 404.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007287/0.01507, allocations: 0.5985 MB / 405.4 MB, free: 6.867 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.0162, allocations: 1.161 MB / 406.6 MB, free: 5.703 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.01745, allocations: 1.153 MB / 407.7 MB, free: 4.547 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002702/0.01772, allocations: 204 kB / 407.9 MB, free: 4.348 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008149/0.01854, allocations: 0.7878 MB / 408.7 MB, free: 3.559 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006132/0.01915, allocations: 1.102 MB / 409.8 MB, free: 2.453 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006076/0.01976, allocations: 0.7007 MB / 410.5 MB, free: 1.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1337/0.1535, allocations: 4.466 MB / 415 MB, free: 18.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1535, allocations: 0 / 415 MB, free: 18.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1535, allocations: 0 / 415 MB, free: 18.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001056/0.1536, allocations: 1.188 kB / 415 MB, free: 18.98 MB / 330.7 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.00528/0.1589, allocations: 3.348 MB / 418.3 MB, free: 17.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1589, allocations: 10.34 kB / 418.4 MB, free: 17.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00044/0.1594, allocations: 488.2 kB / 418.8 MB, free: 17.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003499/0.1629, allocations: 1.789 MB / 420.6 MB, free: 17.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.1642, allocations: 1.154 MB / 421.8 MB, free: 17.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.1643, allocations: 125.6 kB / 421.9 MB, free: 17.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002476/0.1645, allocations: 153.2 kB / 422 MB, free: 17.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005859/0.1704, allocations: 7.183 MB / 429.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.1704, allocations: 21.28 kB / 429.2 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001873/0.1706, allocations: 84.28 kB / 429.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001455/0.1721, allocations: 1.737 MB / 431.1 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006155/0.1782, allocations: 6.516 MB / 437.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01417/0.1924, allocations: 19.89 MB / 457.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002309/0.1947, allocations: 1.547 MB / 459 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006202/0.1953, allocations: 0.6232 MB / 459.6 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00241/0.1977, allocations: 2.095 MB / 461.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.1978, allocations: 49.94 kB / 461.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 2.124e-06/0.1978, allocations: 0 / 461.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.006519/0.2043, allocations: 5.453 MB / 467.2 MB, free: 14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.2043, allocations: 60.41 kB / 467.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.2064, allocations: 2.388 MB / 469.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.732e-05/0.2064, allocations: 41.7 kB / 469.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008082/0.2072, allocations: 1.895 MB / 471.6 MB, free: 9.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.2074, allocations: 470.5 kB / 472.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00058/0.208, allocations: 0.6644 MB / 472.8 MB, free: 8.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.2081, allocations: 309.1 kB / 473.1 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.2092, allocations: 1.084 MB / 474.1 MB, free: 7.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.2112, allocations: 2.961 MB / 477.1 MB, free: 3.199 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003138/0.2143, allocations: 4.349 MB / 481.4 MB, free: 14.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.786e-05/0.2143, allocations: 23.94 kB / 481.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.004116/0.2184, allocations: 4.134 MB / 485.6 MB, free: 9.914 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.2185, allocations: 40.25 kB / 485.6 MB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.151e-05/0.2185, allocations: 64 kB / 485.7 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002912/0.2188, allocations: 200.7 kB / 485.9 MB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.22, allocations: 0.7252 MB / 486.6 MB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.2219, allocations: 2.581 MB / 489.2 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.2229, allocations: 174.7 kB / 489.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.2231, allocations: 196 kB / 489.6 MB, free: 5.832 MB / 378.7 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.001412/0.2245, allocations: 1.425 MB / 491 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.2246, allocations: 198.8 kB / 491.2 MB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.2263, allocations: 1.599 MB / 492.8 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-05/0.2263, allocations: 24.05 kB / 492.8 MB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2263, allocations: 7.938 kB / 492.8 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.2263, allocations: 3.984 kB / 492.8 MB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004629/0.2309, allocations: 4.586 MB / 497.4 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.231, allocations: 4 kB / 497.4 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.2313, allocations: 163.7 kB / 497.6 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.2315, allocations: 121.5 kB / 497.7 MB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/0.2315, allocations: 24.33 kB / 497.7 MB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.2328, allocations: 2.049 MB / 499.8 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.768e-06/0.2328, allocations: 7.938 kB / 499.8 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/0.235, allocations: 2.529 MB / 0.4905 GB, free: 8.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.2352, allocations: 198.7 kB / 0.4907 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.2353, allocations: 16 kB / 0.4907 GB, free: 8.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.2357, allocations: 55.92 kB / 0.4908 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.614e-05/0.2358, allocations: 68.77 kB / 0.4909 GB, free: 8.516 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.2358, allocations: 43.5 kB / 0.4909 GB, free: 8.477 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001284/0.2371, allocations: 1.468 MB / 0.4923 GB, free: 6.984 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2371, allocations: 0 / 0.4923 GB, free: 6.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001336/0.2385, allocations: 0.5585 MB / 0.4929 GB, free: 6.426 MB / 394.7 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.002567/0.241, allocations: 3.159 MB / 0.496 GB, free: 3.207 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.2434, allocations: 2.541 MB / 0.4984 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2434, allocations: 0 / 0.4984 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.2441, allocations: 0.77 MB / 0.4992 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009386/0.245, allocations: 337.1 kB / 0.4995 GB, free: 15.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02178/0.2668, allocations: 23.49 MB / 0.5225 GB, free: 5.594 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/0.2683, allocations: 1.787 MB / 0.5242 GB, free: 3.762 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001344/0.2696, allocations: 1.044 MB / 0.5252 GB, free: 2.719 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009205/0.2706, allocations: 1.106 MB / 0.5263 GB, free: 1.609 MB / 426.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2706, allocations: 0 / 0.5263 GB, free: 1.609 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05037/0.3209, allocations: 40.14 MB / 0.5655 GB, free: 9.902 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.545, allocations: 6.812 kB / 0.5655 GB, free: 9.898 MB / 474.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.Pendulum_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_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.560016732662916] Failed to read output from testmodel.py, exit status != 0: 8.65089047793299 8.80383424 8.648298597 Calling exit ...