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.0006112/0.0006112, allocations: 76.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.000805/0.000805, allocations: 173.2 kB / 22.46 MB, free: 2.098 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.9242/0.9242, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.02717/0.02717, allocations: 7.122 MB / 266.3 MB, free: 6.324 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 2.265e-06/2.265e-06, allocations: 0 / 392.4 MB, free: 4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.627e-05, allocations: 2.281 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.008872/0.008899, allocations: 11.87 MB / 404.2 MB, free: 8.066 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006592/0.01549, allocations: 3.952 MB / 408.2 MB, free: 4.102 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.01698, allocations: 59.75 kB / 408.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007271/0.01771, allocations: 400.6 kB / 408.7 MB, free: 3.648 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001632/0.01934, allocations: 0.9589 MB / 409.6 MB, free: 2.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.02056, allocations: 0.9825 MB / 410.6 MB, free: 1.699 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1662/0.1867, allocations: 2.285 MB / 412.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/0.1889, allocations: 1.993 MB / 414.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.1903, allocations: 1.596 MB / 416.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.1913, allocations: 0.9898 MB / 417.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002797/0.1916, allocations: 312.6 kB / 417.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008515/0.1925, allocations: 0.7296 MB / 418.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.1931, allocations: 1.001 MB / 419.5 MB, free: 15.17 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.1937, allocations: 0.9659 MB / 420.5 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002664/0.1964, allocations: 3.948 MB / 424.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1964, allocations: 0 / 424.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1964, allocations: 1.188 kB / 424.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.1964, allocations: 3.438 kB / 424.4 MB, free: 13.61 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.00533/0.2017, allocations: 4.221 MB / 428.6 MB, free: 11.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2018, allocations: 14.16 kB / 428.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003485/0.2021, allocations: 450.8 kB / 429.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000369/0.2025, allocations: 319.8 kB / 429.4 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.2036, allocations: 1.071 MB / 430.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.2038, allocations: 212 kB / 430.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.204, allocations: 298.3 kB / 431 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004266/0.2083, allocations: 4.752 MB / 435.7 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.357e-05/0.2084, allocations: 39.16 kB / 435.8 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.2085, allocations: 130.3 kB / 435.9 MB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/0.2088, allocations: 427.1 kB / 436.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003667/0.2125, allocations: 3.382 MB / 439.7 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.225, allocations: 20.68 MB / 460.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.2279, allocations: 1.534 MB / 461.9 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006728/0.2286, allocations: 0.6778 MB / 462.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003634/0.2322, allocations: 3.451 MB / 466 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.2323, allocations: 50.12 kB / 466.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 2.595e-06/0.2323, allocations: 0 / 466.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=140): time 0.01354/0.2458, allocations: 9.463 MB / 475.5 MB, free: 2.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2459, allocations: 68.72 kB / 475.6 MB, free: 2.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.2475, allocations: 1.93 MB / 477.5 MB, free: 432 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.2475, allocations: 49.7 kB / 477.6 MB, free: 376 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007006/0.2482, allocations: 1.78 MB / 479.4 MB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.2485, allocations: 0.5466 MB / 479.9 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005913/0.2491, allocations: 0.7352 MB / 480.6 MB, free: 13.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.2492, allocations: 353.9 kB / 481 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.2504, allocations: 1.229 MB / 482.2 MB, free: 11.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002126/0.2525, allocations: 3.408 MB / 485.6 MB, free: 7.277 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.2564, allocations: 5.122 MB / 490.8 MB, free: 1.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.062e-05/0.2564, allocations: 24 kB / 490.8 MB, free: 1.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.004403/0.2608, allocations: 4.816 MB / 495.6 MB, free: 12.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.2608, allocations: 40 kB / 495.6 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003044/0.2611, allocations: 83.92 kB / 495.7 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.2617, allocations: 372.1 kB / 496.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.2631, allocations: 0.8967 MB / 497 MB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/0.2666, allocations: 4.148 MB / 0.4894 GB, free: 7.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.2679, allocations: 219.8 kB / 0.4896 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/0.2681, allocations: 228 kB / 0.4898 GB, free: 6.789 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.001168/0.2693, allocations: 0.9196 MB / 0.4907 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.2695, allocations: 198.7 kB / 0.4909 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.272, allocations: 2.591 MB / 0.4934 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.272, allocations: 16 kB / 0.4934 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.272, allocations: 7.938 kB / 0.4934 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.2721, allocations: 10.45 kB / 0.4935 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006218/0.2783, allocations: 6.1 MB / 0.4994 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.2783, allocations: 8 kB / 0.4994 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.2788, allocations: 268.1 kB / 0.4997 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003803/0.2792, allocations: 267.5 kB / 0.4999 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.236e-05/0.2792, allocations: 31.98 kB / 0.5 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.2817, allocations: 3.315 MB / 0.5032 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.2817, allocations: 7.938 kB / 0.5032 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.285, allocations: 3.898 MB / 0.507 GB, free: 4.883 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.2852, allocations: 178.7 kB / 0.5072 GB, free: 4.707 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.2853, allocations: 24 kB / 0.5072 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.2857, allocations: 111.8 kB / 0.5073 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.2858, allocations: 104.7 kB / 0.5074 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.675e-05/0.2859, allocations: 36 kB / 0.5074 GB, free: 4.438 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009041/0.2868, allocations: 1.077 MB / 0.5085 GB, free: 3.371 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2868, allocations: 0 / 0.5085 GB, free: 3.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001649/0.2884, 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.003744/0.2922, allocations: 4.49 MB / 0.5135 GB, free: 14.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003205/0.2954, allocations: 3.193 MB / 0.5166 GB, free: 10.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2954, allocations: 1.375 kB / 0.5166 GB, free: 10.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.2964, allocations: 1.214 MB / 0.5178 GB, free: 9.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.2975, allocations: 445 kB / 0.5182 GB, free: 9.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/0.32, 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.001077/0.3211, allocations: 1.255 MB / 0.5432 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001345/0.3224, allocations: 0.8589 MB / 0.5441 GB, free: 11.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/0.3236, allocations: 1.055 MB / 0.5451 GB, free: 10.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3236, allocations: 4 kB / 0.5451 GB, free: 10.78 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2137/0.5373, allocations: 46.99 MB / 0.591 GB, free: 174.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/9.004, allocations: 10.22 kB / 0.591 GB, free: 174.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.793554226867855] Failed to read output from testmodel.py, exit status != 0: 9.108572527766228 9.118232911 8.920113772 Calling exit ...