Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002333/0.002333, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002836/0.002836, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 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 1.734/1.734, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.385/0.385, allocations: 34.26 MB / 295.3 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.268e-05/3.448e-05, allocations: 6.312 kB / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004556/0.004591, allocations: 2.309 MB / 379.6 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.0066, allocations: 0.9551 MB / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.006774, allocations: 7.938 kB / 380.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.007206, allocations: 127.1 kB / 380.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.007491, allocations: 103.3 kB / 380.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.008297, allocations: 287.4 kB / 381.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008984/0.009196, allocations: 0.7289 MB / 381.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.00936, allocations: 49.2 kB / 381.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005324/0.009892, allocations: 395.2 kB / 382.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004365/0.01033, allocations: 295.1 kB / 382.5 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.01045, allocations: 60 kB / 382.6 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.01057, allocations: 64 kB / 382.6 MB, free: 13.6 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.01082, allocations: 203.4 kB / 382.8 MB, free: 13.4 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.01104, allocations: 167.6 kB / 383 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007812/0.01183, allocations: 0.6231 MB / 383.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.01183, allocations: 0 / 383.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.01183, allocations: 0 / 383.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.01184, allocations: 0 / 383.6 MB, free: 12.61 MB / 362.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.002292/0.01413, allocations: 0.9281 MB / 384.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.01418, allocations: 16.03 kB / 384.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.01441, allocations: 116.6 kB / 384.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.01509, allocations: 315.2 kB / 385 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007536/0.01584, allocations: 0.6552 MB / 385.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.01595, allocations: 44.38 kB / 385.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.01802, allocations: 0.7158 MB / 386.4 MB, free: 9.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.01804, allocations: 192 / 386.4 MB, free: 9.578 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.528e-05/0.01811, allocations: 20.12 kB / 386.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.01812, allocations: 12 kB / 386.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.02149, allocations: 0.9661 MB / 387.4 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.02563, allocations: 2.279 MB / 389.7 MB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002716/0.02834, allocations: 0.6508 MB / 390.3 MB, free: 5.547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.02971, allocations: 384.2 kB / 390.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.811e-05/0.0298, allocations: 12.56 kB / 390.7 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.02985, allocations: 46.45 kB / 390.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 3.236e-06/0.02985, allocations: 0 / 390.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.04972/0.07957, allocations: 10.44 MB / 401.2 MB, free: 10.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.729e-05/0.07967, allocations: 94.05 kB / 401.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006747/0.08034, allocations: 458.5 kB / 401.7 MB, free: 9.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001714/0.08052, allocations: 45.7 kB / 401.8 MB, free: 9.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002634/0.08078, allocations: 280.3 kB / 402.1 MB, free: 9.652 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005634/0.08134, allocations: 448.3 kB / 402.5 MB, free: 9.211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006741/0.08202, allocations: 244.5 kB / 402.7 MB, free: 8.965 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004143/0.08243, allocations: 0.582 MB / 403.3 MB, free: 8.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003755/0.08619, allocations: 1.209 MB / 404.5 MB, free: 7.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003998/0.09018, allocations: 1.431 MB / 405.9 MB, free: 5.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007296/0.09748, allocations: 2.338 MB / 408.3 MB, free: 3.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.09749, allocations: 4 kB / 408.3 MB, free: 3.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008195/0.1057, allocations: 2.668 MB / 411 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.1057, allocations: 11.98 kB / 411 MB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1057, allocations: 0 / 411 MB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.224e-05/0.1058, allocations: 12 kB / 411 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/0.1085, allocations: 351.5 kB / 411.3 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/0.1086, allocations: 12.16 kB / 411.3 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.1106, allocations: 163.8 kB / 411.5 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.1108, allocations: 47.97 kB / 411.5 MB, free: 8 kB / 378.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.0006442/0.1114, allocations: 252.3 kB / 411.8 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/0.1118, allocations: 107.6 kB / 411.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000369/0.1122, allocations: 108.7 kB / 412 MB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.1122, allocations: 12 kB / 412 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.1122, allocations: 0 / 412 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.1123, allocations: 7.969 kB / 412 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/0.1249, allocations: 4.969 MB / 417 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-05/0.1249, allocations: 24 kB / 417 MB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.1263, allocations: 304 kB / 417.3 MB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.33e-05/0.1263, allocations: 28 kB / 417.3 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.1264, allocations: 51.98 kB / 417.4 MB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.483e-05/0.1265, allocations: 43.8 kB / 417.4 MB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-05/0.1265, allocations: 31.88 kB / 417.5 MB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007471/0.134, allocations: 3.07 MB / 420.5 MB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.1345, allocations: 179.3 kB / 420.7 MB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.1347, allocations: 47.98 kB / 420.8 MB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.1358, allocations: 139.9 kB / 420.9 MB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007892/0.1366, allocations: 227.2 kB / 421.1 MB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.1367, allocations: 56 kB / 421.2 MB, free: 5.531 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003819/0.1371, allocations: 279.1 kB / 421.4 MB, free: 5.258 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1371, allocations: 0 / 421.4 MB, free: 5.258 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001118/0.1382, allocations: 231.9 kB / 421.7 MB, free: 5.031 MB / 394.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.0002884/0.1385, allocations: 170.7 kB / 421.8 MB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00621/0.1447, allocations: 2.025 MB / 423.9 MB, free: 2.832 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/0.1447, allocations: 4 kB / 423.9 MB, free: 2.828 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.1469, allocations: 0.6788 MB / 424.5 MB, free: 2.152 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.1483, allocations: 205.4 kB / 424.7 MB, free: 1.949 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004886/0.1532, allocations: 2.176 MB / 426.9 MB, free: 15.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.1536, allocations: 321.8 kB / 427.2 MB, free: 15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001032/0.1546, allocations: 189.9 kB / 427.4 MB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005873/0.1552, allocations: 76.48 kB / 427.5 MB, free: 14.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/0.1552, allocations: 0 / 427.5 MB, free: 14.73 MB / 410.7 MB Notification: Performance of Templates: time 0.2124/0.3676, allocations: 18.14 MB / 445.6 MB, free: 100.1 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.135970236966386]