Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.001026/0.001026, 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.0008233/0.0008233, 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.8899/0.8899, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.02694/0.02694, allocations: 7.119 MB / 266.3 MB, free: 6.316 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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.565e-05/1.697e-05, allocations: 2.281 kB / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.008187/0.008204, allocations: 11.86 MB / 404.3 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005578/0.01378, allocations: 3.944 MB / 408.2 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007484/0.01453, allocations: 55.81 kB / 408.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006457/0.01518, allocations: 400.6 kB / 408.6 MB, free: 3.648 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.01646, allocations: 0.9589 MB / 409.6 MB, free: 2.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008701/0.01733, allocations: 0.9941 MB / 410.6 MB, free: 1.688 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1529/0.1702, allocations: 2.278 MB / 412.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001933/0.1721, allocations: 1.994 MB / 414.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.1734, allocations: 1.594 MB / 416.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009818/0.1744, allocations: 0.9949 MB / 417.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.1746, allocations: 309.6 kB / 417.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008534/0.1755, allocations: 0.7343 MB / 418.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006109/0.1761, allocations: 1.003 MB / 419.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.1767, allocations: 0.9667 MB / 420.5 MB, free: 15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.1796, allocations: 3.949 MB / 424.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1796, allocations: 0 / 424.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1796, allocations: 0 / 424.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.494e-05/0.1796, allocations: 3.438 kB / 424.4 MB, free: 13.59 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.006068/0.1857, allocations: 4.213 MB / 428.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1858, allocations: 13.41 kB / 428.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004036/0.1862, allocations: 451.8 kB / 429.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000513/0.1867, allocations: 319 kB / 429.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.1879, allocations: 1.071 MB / 430.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.188, allocations: 215.4 kB / 430.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/0.1883, allocations: 293.1 kB / 431 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004379/0.1927, allocations: 4.75 MB / 435.7 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-05/0.1927, allocations: 44.75 kB / 435.8 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.1929, allocations: 131.5 kB / 435.9 MB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/0.1932, allocations: 424.7 kB / 436.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.1967, allocations: 3.384 MB / 439.7 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01196/0.2087, allocations: 20.69 MB / 460.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002808/0.2115, allocations: 1.527 MB / 461.9 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008217/0.2123, allocations: 0.6752 MB / 462.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003643/0.2159, allocations: 3.453 MB / 466 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.216, allocations: 51.48 kB / 466.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 2.214e-06/0.216, allocations: 0 / 466.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=140): time 0.01288/0.2289, allocations: 9.464 MB / 475.5 MB, free: 2.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.2289, allocations: 68.72 kB / 475.6 MB, free: 2.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.2306, allocations: 1.93 MB / 477.5 MB, free: 432 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.2306, allocations: 45.7 kB / 477.6 MB, free: 380 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006971/0.2313, allocations: 1.785 MB / 479.4 MB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.2316, allocations: 0.5459 MB / 479.9 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006035/0.2322, allocations: 0.7352 MB / 480.6 MB, free: 13.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2323, allocations: 357.9 kB / 481 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.2335, allocations: 1.222 MB / 482.2 MB, free: 11.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/0.2356, allocations: 3.412 MB / 485.6 MB, free: 7.281 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.2395, allocations: 5.123 MB / 490.8 MB, free: 1.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.232e-05/0.2396, allocations: 24 kB / 490.8 MB, free: 1.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.004548/0.2441, allocations: 4.811 MB / 495.6 MB, free: 12.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.2442, allocations: 44.77 kB / 495.6 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/0.2442, allocations: 76 kB / 495.7 MB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005152/0.2447, allocations: 369.2 kB / 496.1 MB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.2461, allocations: 0.8967 MB / 497 MB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003525/0.2496, allocations: 4.15 MB / 0.4894 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.2509, allocations: 211.8 kB / 0.4896 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.251, allocations: 232 kB / 0.4898 GB, free: 6.797 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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.001018/0.252, allocations: 0.9257 MB / 0.4907 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.2522, allocations: 202.7 kB / 0.4909 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.2548, allocations: 2.591 MB / 0.4934 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2548, allocations: 12 kB / 0.4934 GB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2548, allocations: 7.938 kB / 0.4934 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.2548, allocations: 7.969 kB / 0.4934 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006089/0.2609, allocations: 6.106 MB / 0.4994 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2609, allocations: 7.984 kB / 0.4994 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.2615, allocations: 268.1 kB / 0.4997 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005151/0.262, allocations: 260 kB / 0.4999 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.959e-05/0.262, allocations: 39.92 kB / 0.5 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.2645, allocations: 3.315 MB / 0.5032 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.2645, allocations: 7.984 kB / 0.5032 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003633/0.2682, allocations: 3.898 MB / 0.507 GB, free: 4.883 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.2684, allocations: 178.7 kB / 0.5072 GB, free: 4.707 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.2685, allocations: 24 kB / 0.5072 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2689, allocations: 111.8 kB / 0.5073 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.2691, allocations: 104.7 kB / 0.5074 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.2691, allocations: 36 kB / 0.5074 GB, free: 4.438 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009565/0.2701, allocations: 1.077 MB / 0.5085 GB, free: 3.371 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2701, allocations: 0 / 0.5085 GB, free: 3.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001768/0.2718, allocations: 0.6289 MB / 0.5091 GB, free: 2.742 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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.003467/0.2753, allocations: 4.482 MB / 0.5135 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.2785, allocations: 3.193 MB / 0.5166 GB, free: 10.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2785, allocations: 0 / 0.5166 GB, free: 10.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009864/0.2795, allocations: 1.215 MB / 0.5178 GB, free: 9.758 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.2806, allocations: 452.3 kB / 0.5182 GB, free: 9.344 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/0.3018, allocations: 24.33 MB / 0.542 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.3029, allocations: 1.263 MB / 0.5432 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001358/0.3042, allocations: 0.8511 MB / 0.544 GB, free: 11.85 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009105/0.3051, allocations: 1.059 MB / 0.5451 GB, free: 10.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3051, allocations: 4 kB / 0.5451 GB, free: 10.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1993/0.5044, allocations: 47 MB / 0.591 GB, free: 174.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.717/9.222, allocations: 9.359 kB / 0.591 GB, free: 174.5 MB / 490.7 MB " [Timeout remaining time 651] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.MeasureDemo_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_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.998689675703645] Failed to read output from testmodel.py, exit status != 0: 9.32246299367398 9.331909387 9.150599298 Calling exit ...