Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.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.0009003/0.0009003, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003955/0.003955, allocations: 160.9 kB / 24.7 MB, free: 9.426 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.8586/0.8586, allocations: 177.2 MB / 205 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2472/0.2472, allocations: 32.79 MB / 294.2 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 440.8 MB, free: 3.754 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.905e-05/3.063e-05, allocations: 2.281 kB / 440.8 MB, free: 3.75 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002674/0.002705, allocations: 2.246 MB / 443.1 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.004221, allocations: 0.9551 MB / 444 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.004466, allocations: 11.88 kB / 444.1 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.004835, allocations: 123.2 kB / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.005057, allocations: 95.33 kB / 444.3 MB, free: 308 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007093/0.005766, allocations: 299.4 kB / 444.6 MB, free: 8 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.2245/0.2302, allocations: 0.718 MB / 445.3 MB, free: 43.97 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.2305, allocations: 47.8 kB / 445.3 MB, free: 43.96 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004376/0.2309, allocations: 394.4 kB / 445.7 MB, free: 43.94 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.2313, allocations: 296.2 kB / 446 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.71e-05/0.2314, allocations: 59.88 kB / 446.1 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.742e-05/0.2314, allocations: 64.69 kB / 446.1 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.2316, allocations: 198.1 kB / 446.3 MB, free: 43.89 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.2317, allocations: 172.8 kB / 446.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006263/0.2324, allocations: 0.6199 MB / 447.1 MB, free: 43.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.2324, allocations: 2.062 kB / 447.1 MB, free: 43.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2324, allocations: 0 / 447.1 MB, free: 43.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.2324, allocations: 0 / 447.1 MB, free: 43.85 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.001634/0.234, allocations: 0.8806 MB / 448 MB, free: 43.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.2341, allocations: 8.625 kB / 448 MB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.2342, allocations: 66.17 kB / 448.1 MB, free: 43.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.2348, allocations: 320.5 kB / 448.4 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.2351, allocations: 0.6698 MB / 449 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.2352, allocations: 40.75 kB / 449.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.2364, allocations: 0.8166 MB / 449.9 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2364, allocations: 3.75 kB / 449.9 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.2364, allocations: 18.22 kB / 449.9 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2365, allocations: 12.56 kB / 449.9 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.2383, allocations: 1.219 MB / 451.1 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.2399, allocations: 1.846 MB / 453 MB, free: 40.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.2415, allocations: 0.7466 MB / 453.7 MB, free: 40.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007871/0.2423, allocations: 465.2 kB / 454.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.343e-05/0.2423, allocations: 17.66 kB / 454.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.2424, allocations: 38.88 kB / 454.3 MB, free: 40.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.715e-06/0.2424, allocations: 0 / 454.3 MB, free: 40.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04209/0.2845, allocations: 15.54 MB / 469.8 MB, free: 36.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.2845, allocations: 93.2 kB / 469.9 MB, free: 36.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.2849, allocations: 428.1 kB / 470.3 MB, free: 36.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.2851, allocations: 44.8 kB / 470.3 MB, free: 36.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2852, allocations: 219 kB / 470.6 MB, free: 36.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.2854, allocations: 420.9 kB / 471 MB, free: 35.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.2858, allocations: 198.6 kB / 471.2 MB, free: 35.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.71e-05/0.2859, allocations: 374.4 kB / 471.5 MB, free: 35.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.2879, allocations: 1.357 MB / 472.9 MB, free: 34.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.2899, allocations: 1.508 MB / 474.4 MB, free: 34.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.2939, allocations: 2.449 MB / 476.8 MB, free: 33.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2939, allocations: 4.938 kB / 476.8 MB, free: 33.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004923/0.2988, allocations: 2.852 MB / 479.7 MB, free: 32.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.2989, allocations: 7.344 kB / 479.7 MB, free: 32.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.2989, allocations: 3.406 kB / 479.7 MB, free: 32.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.556e-05/0.2989, allocations: 7.844 kB / 479.7 MB, free: 32.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.3004, allocations: 411.6 kB / 480.1 MB, free: 32.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.3004, allocations: 13.08 kB / 480.1 MB, free: 32.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.3015, allocations: 220.7 kB / 480.3 MB, free: 32.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.3017, allocations: 40.19 kB / 480.4 MB, free: 32.09 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.000399/0.302, allocations: 246.2 kB / 480.6 MB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3022, allocations: 66.52 kB / 480.7 MB, free: 31.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.3023, allocations: 115 kB / 480.8 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.3023, allocations: 13.25 kB / 480.8 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-05/0.3024, allocations: 1.031 kB / 480.8 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.3024, allocations: 6.094 kB / 480.8 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007373/0.3098, allocations: 4.788 MB / 485.6 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/0.3098, allocations: 21.09 kB / 485.6 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008352/0.3106, allocations: 359.5 kB / 486 MB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.481e-05/0.3106, allocations: 32.28 kB / 486 MB, free: 29.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.464e-05/0.3107, allocations: 48.8 kB / 486.1 MB, free: 29.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.581e-05/0.3107, allocations: 39.25 kB / 486.1 MB, free: 29.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.657e-05/0.3107, allocations: 36.73 kB / 486.1 MB, free: 29.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004534/0.3153, allocations: 3.079 MB / 489.2 MB, free: 27.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/0.3157, allocations: 172.7 kB / 489.4 MB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.621e-05/0.3158, allocations: 51.89 kB / 489.4 MB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007896/0.3166, allocations: 196.3 kB / 489.6 MB, free: 27.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003974/0.317, allocations: 221.9 kB / 489.8 MB, free: 27.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.85e-05/0.3171, allocations: 59.25 kB / 489.9 MB, free: 27.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002977/0.3174, allocations: 278.3 kB / 490.2 MB, free: 27.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3174, allocations: 4 kB / 490.2 MB, free: 27.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009269/0.3183, allocations: 234.8 kB / 490.4 MB, free: 27.39 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.0002006/0.3185, allocations: 169.5 kB / 490.6 MB, free: 27.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004282/0.3228, allocations: 2.199 MB / 492.8 MB, free: 26.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.671e-05/0.3228, allocations: 3.562 kB / 492.8 MB, free: 26.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.3253, allocations: 1.063 MB / 493.8 MB, free: 26.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.3264, allocations: 148.2 kB / 494 MB, free: 26.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.3295, allocations: 1.99 MB / 496 MB, free: 24.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.3299, allocations: 328.8 kB / 496.3 MB, free: 24.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005952/0.3305, allocations: 86.77 kB / 496.4 MB, free: 24.53 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/0.3305, allocations: 0 / 496.4 MB, free: 24.53 MB / 410.7 MB Notification: Performance of Templates: time 0.01792/0.3484, allocations: 14.53 MB / 0.4989 GB, free: 13.05 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 5.5454579228535295]