Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001161, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008439/0.0008439, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.934/0.934, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2573/0.2573, allocations: 34.24 MB / 294.8 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 442.1 MB, free: 1.566 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.829e-05/3.03e-05, allocations: 5.094 kB / 442.1 MB, free: 1.562 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.1863/0.1864, allocations: 2.244 MB / 444.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.1877, allocations: 0.9557 MB / 445.3 MB, free: 42.87 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.1879, allocations: 9.812 kB / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.1882, allocations: 115.4 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.1884, allocations: 113.6 kB / 445.6 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.189, allocations: 288.9 kB / 445.9 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.1894, allocations: 0.7255 MB / 446.6 MB, free: 42.44 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.1896, allocations: 46.03 kB / 446.6 MB, free: 42.42 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002957/0.1899, allocations: 393.4 kB / 447 MB, free: 42.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.1901, allocations: 293.9 kB / 447.3 MB, free: 42.15 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.503e-05/0.1902, allocations: 60.75 kB / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.1902, allocations: 61.41 kB / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1903, allocations: 202 kB / 447.6 MB, free: 42.05 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.93e-05/0.1904, allocations: 178.7 kB / 447.8 MB, free: 41.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.1908, allocations: 0.6208 MB / 448.4 MB, free: 41.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1908, allocations: 0 / 448.4 MB, free: 41.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1908, allocations: 3.344 kB / 448.4 MB, free: 41.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1908, allocations: 0 / 448.4 MB, free: 41.69 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001143/0.1919, allocations: 0.8764 MB / 449.3 MB, free: 41.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.192, allocations: 8.469 kB / 449.3 MB, free: 41.19 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.192, allocations: 96.73 kB / 449.4 MB, free: 41.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.826e-05/0.1921, allocations: 64.83 kB / 449.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.1925, allocations: 308.1 kB / 449.8 MB, free: 40.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.1927, allocations: 0.6762 MB / 450.4 MB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.567e-05/0.1928, allocations: 38.56 kB / 450.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1938, allocations: 0.8214 MB / 451.3 MB, free: 39.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1938, allocations: 6.906 kB / 451.3 MB, free: 39.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.1938, allocations: 18.84 kB / 451.3 MB, free: 39.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1938, allocations: 11.69 kB / 451.3 MB, free: 39.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.1956, allocations: 1.206 MB / 452.5 MB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.1971, allocations: 1.898 MB / 454.4 MB, free: 38.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.1984, allocations: 0.7553 MB / 455.2 MB, free: 37.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.1992, allocations: 464.1 kB / 455.6 MB, free: 37.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.181e-05/0.1992, allocations: 10.8 kB / 455.7 MB, free: 37.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.1992, allocations: 42.66 kB / 455.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.663e-06/0.1992, allocations: 0 / 455.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04265/0.2419, allocations: 15.55 MB / 471.2 MB, free: 34.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.2419, allocations: 94.73 kB / 471.3 MB, free: 34.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004486/0.2424, allocations: 412.6 kB / 471.7 MB, free: 33.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.2425, allocations: 44.67 kB / 471.8 MB, free: 33.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.2427, allocations: 226.1 kB / 472 MB, free: 33.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.2429, allocations: 414.3 kB / 472.4 MB, free: 33.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003807/0.2433, allocations: 198.5 kB / 472.6 MB, free: 33.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.531e-05/0.2434, allocations: 378.9 kB / 473 MB, free: 32.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/0.2454, allocations: 1.357 MB / 474.3 MB, free: 32.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/0.2479, allocations: 1.504 MB / 475.8 MB, free: 31.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00415/0.252, allocations: 2.454 MB / 478.3 MB, free: 30.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.252, allocations: 1.125 kB / 478.3 MB, free: 30.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004964/0.257, allocations: 2.857 MB / 481.1 MB, free: 29.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.257, allocations: 6.188 kB / 481.2 MB, free: 29.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.257, allocations: 10.8 kB / 481.2 MB, free: 29.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.381e-05/0.2571, allocations: 8.5 kB / 481.2 MB, free: 29.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.2586, allocations: 410.8 kB / 481.6 MB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.2586, allocations: 9.609 kB / 481.6 MB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.2597, allocations: 222 kB / 481.8 MB, free: 29.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.2598, allocations: 43.02 kB / 481.8 MB, free: 29.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003888/0.2602, allocations: 237.5 kB / 482.1 MB, free: 29.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.2603, allocations: 62.7 kB / 482.1 MB, free: 29.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.2604, allocations: 107.9 kB / 482.2 MB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.2604, allocations: 12.69 kB / 482.3 MB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.27e-05/0.2605, allocations: 1.719 kB / 482.3 MB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.2605, allocations: 5.906 kB / 482.3 MB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008217/0.2687, allocations: 4.867 MB / 487.1 MB, free: 26.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.009e-05/0.2687, allocations: 22.5 kB / 487.1 MB, free: 26.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.2697, allocations: 358.3 kB / 487.5 MB, free: 26.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.508e-05/0.2698, allocations: 32.05 kB / 487.5 MB, free: 26.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.2699, allocations: 48.27 kB / 487.6 MB, free: 26.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.485e-05/0.2699, allocations: 43.61 kB / 487.6 MB, free: 26.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-05/0.2699, allocations: 32.28 kB / 487.7 MB, free: 26.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.2747, allocations: 3.087 MB / 490.7 MB, free: 25.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005795/0.2753, allocations: 168.8 kB / 490.9 MB, free: 24.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.2755, allocations: 56.5 kB / 491 MB, free: 24.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008526/0.2763, allocations: 194.8 kB / 491.1 MB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003805/0.2767, allocations: 234 kB / 491.4 MB, free: 24.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.174e-05/0.2768, allocations: 57.66 kB / 491.4 MB, free: 24.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003011/0.2771, allocations: 280 kB / 491.7 MB, free: 24.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2771, allocations: 0 / 491.7 MB, free: 24.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009683/0.2781, allocations: 234.6 kB / 491.9 MB, free: 24.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00493/0.283, allocations: 3.68 MB / 495.6 MB, free: 22.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004698/0.2877, allocations: 2.185 MB / 497.8 MB, free: 21.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.075e-05/0.2877, allocations: 2.906 kB / 497.8 MB, free: 21.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002461/0.2902, allocations: 1.065 MB / 498.9 MB, free: 21.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.2914, allocations: 156.9 kB / 499 MB, free: 21.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/0.308, allocations: 12.44 MB / 0.4995 GB, free: 9.406 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.3083, allocations: 337.7 kB / 0.4998 GB, free: 9.051 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006855/0.309, allocations: 202 kB / 0.5 GB, free: 8.852 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.3094, allocations: 220.4 kB / 0.5002 GB, free: 8.637 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3094, allocations: 0 / 0.5002 GB, free: 8.637 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.3423, allocations: 23.92 MB / 0.5236 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.537, allocations: 11.94 kB / 0.5236 GB, free: 0.875 MB / 426.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.590485634282231]