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.00192/0.00192, 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.001987/0.001987, allocations: 161.3 kB / 24.27 MB, free: 160 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.525/1.525, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 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.3149/0.3149, allocations: 32.8 MB / 293.9 MB, free: 1.219 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.893e-06/1.893e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.076e-05/3.265e-05, allocations: 2.312 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004408/0.00444, allocations: 2.318 MB / 377.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.006573, allocations: 0.9551 MB / 378.5 MB, free: 1.711 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.006761, allocations: 11.88 kB / 378.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004437/0.007204, allocations: 119.2 kB / 378.6 MB, free: 1.582 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.007483, allocations: 99.33 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007219/0.008205, allocations: 299.3 kB / 379 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.009264, allocations: 0.7328 MB / 379.8 MB, free: 468 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.009441, allocations: 41.27 kB / 379.8 MB, free: 424 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.01002, allocations: 395.2 kB / 380.2 MB, free: 28 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000493/0.01051, allocations: 291.2 kB / 380.5 MB, free: 15.74 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.01065, allocations: 64 kB / 380.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.01077, allocations: 64 kB / 380.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000266/0.01104, allocations: 199.4 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.01127, allocations: 175.5 kB / 381 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007699/0.01204, allocations: 0.6192 MB / 381.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.01205, allocations: 0 / 381.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.01205, allocations: 0 / 381.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.01206, allocations: 4 kB / 381.6 MB, free: 14.62 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.002224/0.01428, allocations: 0.9242 MB / 382.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.01432, allocations: 12.03 kB / 382.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.01453, allocations: 116.6 kB / 382.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.01514, allocations: 311.2 kB / 382.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000656/0.01579, allocations: 0.6552 MB / 383.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.01589, allocations: 44.38 kB / 383.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/0.01781, allocations: 0.7158 MB / 384.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.01784, allocations: 4.125 kB / 384.4 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.0179, allocations: 20.12 kB / 384.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.01791, allocations: 12 kB / 384.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.02117, allocations: 0.9623 MB / 385.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.02483, allocations: 2.286 MB / 387.6 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/0.02753, allocations: 0.6591 MB / 388.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/0.02891, allocations: 384.2 kB / 388.7 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.003e-05/0.029, allocations: 12.56 kB / 388.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.02905, allocations: 46.52 kB / 388.7 MB, free: 7.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.02905, allocations: 0 / 388.7 MB, free: 7.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.04798/0.07703, allocations: 10.43 MB / 399.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.07712, allocations: 90.11 kB / 399.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000662/0.07778, allocations: 454.5 kB / 399.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/0.07797, allocations: 45.7 kB / 399.7 MB, free: 11.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.07823, allocations: 288.3 kB / 400 MB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.0788, allocations: 440.4 kB / 400.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006922/0.07949, allocations: 240.5 kB / 400.7 MB, free: 10.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005307/0.08002, allocations: 0.5859 MB / 401.3 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/0.08374, allocations: 1.209 MB / 402.5 MB, free: 9.184 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003963/0.0877, allocations: 1.438 MB / 403.9 MB, free: 7.688 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007038/0.09474, allocations: 2.342 MB / 406.3 MB, free: 5.285 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.09475, allocations: 0 / 406.3 MB, free: 5.285 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008345/0.1031, allocations: 2.668 MB / 408.9 MB, free: 2.613 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.1031, allocations: 4 kB / 408.9 MB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.1031, allocations: 4 kB / 408.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/0.1032, allocations: 8 kB / 409 MB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/0.106, allocations: 351.7 kB / 409.3 MB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.106, allocations: 12 kB / 409.3 MB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/0.108, allocations: 163.8 kB / 409.5 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.1081, allocations: 43.98 kB / 409.5 MB, free: 2.039 MB / 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.0005204/0.1087, allocations: 252.3 kB / 409.8 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003734/0.109, allocations: 103.6 kB / 409.9 MB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003632/0.1094, allocations: 112.7 kB / 410 MB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.1094, allocations: 15.98 kB / 410 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.1094, allocations: 0 / 410 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.1095, allocations: 3.984 kB / 410 MB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.1222, allocations: 4.983 MB / 415 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.839e-05/0.1223, allocations: 23.98 kB / 415 MB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.1238, allocations: 308.1 kB / 415.3 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.723e-05/0.1239, allocations: 31.94 kB / 415.3 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/0.124, allocations: 48 kB / 415.4 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.405e-05/0.124, allocations: 39.86 kB / 415.4 MB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-05/0.1241, allocations: 31.88 kB / 415.4 MB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007557/0.1316, allocations: 3.066 MB / 418.5 MB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006079/0.1322, allocations: 175.4 kB / 418.7 MB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.1324, allocations: 47.98 kB / 418.7 MB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.1337, allocations: 139.9 kB / 418.9 MB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005378/0.1342, allocations: 231.2 kB / 419.1 MB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.1344, allocations: 56 kB / 419.1 MB, free: 7.547 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003797/0.1348, allocations: 275.1 kB / 419.4 MB, free: 7.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1348, allocations: 4 kB / 419.4 MB, free: 7.273 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00113/0.1359, allocations: 231.9 kB / 419.6 MB, free: 7.047 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.0003139/0.1362, allocations: 167.4 kB / 419.8 MB, free: 6.875 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006726/0.1429, allocations: 2.025 MB / 421.8 MB, free: 4.848 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.112e-05/0.143, allocations: 4 kB / 421.8 MB, free: 4.844 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/0.1453, allocations: 0.6787 MB / 422.5 MB, free: 4.168 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001661/0.1469, allocations: 211 kB / 422.7 MB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005258/0.1522, allocations: 2.18 MB / 424.9 MB, free: 1.348 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.1527, allocations: 329.6 kB / 425.2 MB, free: 1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00116/0.1539, allocations: 197.9 kB / 425.4 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006528/0.1545, allocations: 72.5 kB / 425.5 MB, free: 0.7344 MB / 394.7 MB Notification: Performance of SimCode: time 2.715e-06/0.1545, allocations: 0 / 425.5 MB, free: 0.7344 MB / 394.7 MB Notification: Performance of Templates: time 0.1802/0.3347, allocations: 18.13 MB / 443.6 MB, free: 101.5 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] 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.671747565967962]