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.001725/0.001725, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 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.001947/0.001947, allocations: 209.6 kB / 23.73 MB, free: 4.41 MB / 14.72 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 1.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.2236/0.2236, allocations: 44.94 MB / 358.8 MB, free: 6.082 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 67.89 kB / 0.4935 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3824, allocations: 65.48 MB / 0.5575 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003848/0.3863, allocations: 2.236 MB / 0.5596 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.3881, allocations: 0.9485 MB / 0.5606 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.3883, allocations: 11.88 kB / 0.5606 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000369/0.3886, allocations: 107.3 kB / 0.5607 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.3889, allocations: 107.3 kB / 0.5608 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.3895, allocations: 295.5 kB / 0.5611 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007759/0.3903, allocations: 0.7249 MB / 0.5618 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3905, allocations: 48.91 kB / 0.5618 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003377/0.3908, allocations: 287.1 kB / 0.5621 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.3913, allocations: 322.6 kB / 0.5624 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3914, allocations: 64 kB / 0.5625 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.3915, allocations: 64 kB / 0.5625 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.3917, allocations: 199.4 kB / 0.5627 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.3919, allocations: 211 kB / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006154/0.3925, allocations: 0.5786 MB / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3925, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3925, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.3925, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 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.002422/0.395, allocations: 0.8792 MB / 0.5643 GB, free: 388 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.395, allocations: 8.031 kB / 0.5643 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.3951, allocations: 72.61 kB / 0.5644 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007004/0.3958, allocations: 313.1 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006041/0.3964, allocations: 0.6746 MB / 0.5654 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.3965, allocations: 44.38 kB / 0.5654 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.3988, allocations: 0.8243 MB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.3988, allocations: 4 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/0.3989, allocations: 16 kB / 0.5662 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3989, allocations: 12 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.4028, allocations: 1.208 MB / 0.5674 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.4059, allocations: 1.837 MB / 0.5692 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003012/0.4089, allocations: 0.7668 MB / 0.57 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.4106, allocations: 466.4 kB / 0.5704 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.151e-05/0.4107, allocations: 4.562 kB / 0.5704 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.4107, allocations: 43.69 kB / 0.5705 GB, free: 9.809 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.246e-06/0.4107, allocations: 0 / 0.5705 GB, free: 9.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09047/0.5012, allocations: 15.54 MB / 0.5856 GB, free: 10.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/0.5013, allocations: 90.11 kB / 0.5857 GB, free: 10.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005738/0.5018, allocations: 417.4 kB / 0.5861 GB, free: 9.637 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.502, allocations: 45.7 kB / 0.5862 GB, free: 9.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.5022, allocations: 217.6 kB / 0.5864 GB, free: 9.367 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.5026, allocations: 432.3 kB / 0.5868 GB, free: 8.941 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005548/0.5032, allocations: 202.8 kB / 0.587 GB, free: 8.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.5034, allocations: 382.6 kB / 0.5873 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003872/0.5073, allocations: 1.357 MB / 0.5887 GB, free: 6.996 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00405/0.5113, allocations: 1.505 MB / 0.5901 GB, free: 5.441 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007398/0.5187, allocations: 2.447 MB / 0.5925 GB, free: 2.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.5187, allocations: 4 kB / 0.5925 GB, free: 2.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008491/0.5272, allocations: 2.859 MB / 0.5953 GB, free: 80 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.5272, allocations: 4 kB / 0.5953 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.5272, allocations: 4.25 kB / 0.5953 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.388e-05/0.5273, allocations: 12 kB / 0.5953 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/0.53, allocations: 407.4 kB / 0.5957 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.5301, allocations: 12 kB / 0.5957 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.5322, allocations: 227.6 kB / 0.596 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001532/0.5323, allocations: 43.97 kB / 0.596 GB, free: 15.38 MB / 446.1 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.000521/0.5328, allocations: 233.9 kB / 0.5962 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/0.5331, allocations: 67.58 kB / 0.5963 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.5333, allocations: 108.7 kB / 0.5964 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.5333, allocations: 12 kB / 0.5964 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5333, allocations: 0 / 0.5964 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.5334, allocations: 7.922 kB / 0.5964 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01259/0.5459, allocations: 4.787 MB / 0.6011 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.794e-05/0.546, allocations: 20 kB / 0.6011 GB, free: 9.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.5476, allocations: 360.2 kB / 0.6014 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.64e-05/0.5476, allocations: 31.94 kB / 0.6015 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/0.5477, allocations: 48 kB / 0.6015 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.392e-05/0.5477, allocations: 43.8 kB / 0.6016 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.59e-05/0.5478, allocations: 35.88 kB / 0.6016 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008157/0.5559, allocations: 3.139 MB / 0.6047 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/0.5564, allocations: 163.5 kB / 0.6048 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.5566, allocations: 55.97 kB / 0.6049 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.5579, allocations: 187.8 kB / 0.6051 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004613/0.5584, allocations: 231.2 kB / 0.6053 GB, free: 5.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-05/0.5585, allocations: 63.94 kB / 0.6053 GB, free: 5.191 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003801/0.5589, allocations: 283.1 kB / 0.6056 GB, free: 4.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5589, allocations: 0 / 0.6056 GB, free: 4.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001051/0.5599, allocations: 236 kB / 0.6058 GB, free: 4.68 MB / 446.1 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.0002485/0.5602, allocations: 166.7 kB / 0.606 GB, free: 4.508 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006824/0.567, allocations: 2.187 MB / 0.6081 GB, free: 2.324 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.817e-05/0.567, allocations: 4 kB / 0.6081 GB, free: 2.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003709/0.5707, allocations: 1.062 MB / 0.6092 GB, free: 1.266 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.5721, allocations: 155.8 kB / 0.6093 GB, free: 1.121 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.5764, allocations: 1.987 MB / 0.6113 GB, free: 14.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.5768, allocations: 329.8 kB / 0.6116 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001081/0.5779, allocations: 205.9 kB / 0.6118 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005718/0.5784, allocations: 71.42 kB / 0.6118 GB, free: 14.19 MB / 462.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5784, allocations: 3.938 kB / 0.6118 GB, free: 14.19 MB / 462.1 MB Notification: Performance of Templates: time 0.03068/0.6091, allocations: 18.55 MB / 0.6299 GB, free: 11.77 MB / 478.1 MB " [Timeout remaining time 659] 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: 6.207045204937458]