Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.0009617/0.0009617, allocations: 84.44 kB / 20.69 MB, free: 3.875 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.001021/0.001021, allocations: 169.9 kB / 23.96 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8992/0.8992, allocations: 158.6 MB / 185.7 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1398/0.1398, allocations: 32.37 MB / 270.4 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 408.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.705e-05/3.922e-05, allocations: 6.219 kB / 408.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003704/0.003743, allocations: 1.856 MB / 409.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.004557, allocations: 0.5188 MB / 410.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.644e-05/0.004654, allocations: 4 kB / 410.5 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.004801, allocations: 15.8 kB / 410.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.286e-05/0.004884, allocations: 43.58 kB / 410.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.005104, allocations: 39.94 kB / 410.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.00528, allocations: 159.2 kB / 410.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.005454, allocations: 45.77 kB / 410.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.0056, allocations: 91.8 kB / 410.9 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.847e-05/0.005699, allocations: 47.81 kB / 410.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.005728, allocations: 12 kB / 410.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.6e-05/0.005744, allocations: 12 kB / 410.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.12e-05/0.005775, allocations: 27.91 kB / 411 MB, free: 10.14 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.62e-05/0.005821, allocations: 47.84 kB / 411 MB, free: 10.1 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.00603, allocations: 151.5 kB / 411.1 MB, free: 9.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.006035, allocations: 4 kB / 411.1 MB, free: 9.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.006037, allocations: 0 / 411.1 MB, free: 9.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.006046, allocations: 4 kB / 411.2 MB, free: 9.941 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004877/0.006534, allocations: 353.7 kB / 411.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.006587, allocations: 12.03 kB / 411.5 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.328e-05/0.00663, allocations: 12.84 kB / 411.5 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.006836, allocations: 141.6 kB / 411.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.006852, allocations: 12.38 kB / 411.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.006884, allocations: 16.31 kB / 411.7 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.007089, allocations: 130.1 kB / 411.8 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.007104, allocations: 12.14 kB / 411.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.007119, allocations: 8.125 kB / 411.8 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.007125, allocations: 4 kB / 411.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.007247, allocations: 83.94 kB / 411.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.007738, allocations: 360.1 kB / 412.3 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.007914, allocations: 114.5 kB / 412.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.096e-05/0.007985, allocations: 48.84 kB / 412.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.008005, allocations: 15.92 kB / 412.4 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.008027, allocations: 30.56 kB / 412.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.364e-06/0.00803, allocations: 0 / 412.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.00104/0.009069, allocations: 0.6593 MB / 413.1 MB, free: 7.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.009106, allocations: 55.34 kB / 413.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.334e-05/0.009189, allocations: 131.1 kB / 413.3 MB, free: 7.586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.009203, allocations: 29.7 kB / 413.3 MB, free: 7.551 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.902e-05/0.009262, allocations: 112.4 kB / 413.5 MB, free: 7.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.009299, allocations: 71.41 kB / 413.5 MB, free: 7.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.009344, allocations: 33.72 kB / 413.6 MB, free: 7.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.009429, allocations: 322.8 kB / 413.9 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.396e-05/0.009493, allocations: 43.97 kB / 413.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.852e-05/0.009572, allocations: 75.41 kB / 414 MB, free: 6.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.009716, allocations: 127.4 kB / 414.1 MB, free: 6.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.009718, allocations: 8 kB / 414.1 MB, free: 6.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002357/0.009954, allocations: 210.1 kB / 414.3 MB, free: 6.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.009971, allocations: 10.34 kB / 414.3 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.009977, allocations: 0 / 414.3 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001371/0.01011, allocations: 40.83 kB / 414.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.01023, allocations: 35.92 kB / 414.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.01131, allocations: 1.602 MB / 416 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.177e-05/0.01135, allocations: 8.25 kB / 416 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.01136, allocations: 4 kB / 416 MB, free: 4.707 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.638e-05/0.01145, allocations: 138 kB / 416.2 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.01147, allocations: 11.91 kB / 416.2 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.0115, allocations: 20.77 kB / 416.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.0115, allocations: 8.109 kB / 416.2 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.01151, allocations: 3.984 kB / 416.2 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.01152, allocations: 0 / 416.2 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005048/0.01202, allocations: 479.5 kB / 416.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.01202, allocations: 3.984 kB / 416.7 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.01213, allocations: 35.92 kB / 416.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.056e-05/0.01221, allocations: 32.84 kB / 416.7 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.01222, allocations: 8.031 kB / 416.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009293/0.01315, allocations: 1.335 MB / 418.1 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.01315, allocations: 0 / 418.1 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003116/0.01346, allocations: 348.9 kB / 418.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.08e-05/0.01347, allocations: 11.92 kB / 418.4 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.01348, allocations: 8 kB / 418.5 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.503e-05/0.01353, allocations: 12.11 kB / 418.5 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.01359, allocations: 15.97 kB / 418.5 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.01359, allocations: 8 kB / 418.5 MB, free: 2.074 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.01364, allocations: 95.77 kB / 418.6 MB, free: 1.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01364, allocations: 3.938 kB / 418.6 MB, free: 1.977 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.01386, allocations: 40 kB / 418.6 MB, free: 1.938 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001163/0.01397, allocations: 99.19 kB / 418.7 MB, free: 1.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003802/0.01435, allocations: 266.7 kB / 419 MB, free: 1.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.01436, allocations: 0 / 419 MB, free: 1.555 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.0145, allocations: 186.6 kB / 419.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.01476, allocations: 27.12 kB / 419.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005678/0.01532, allocations: 412.6 kB / 419.6 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.775e-05/0.0154, allocations: 111.7 kB / 419.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.01544, allocations: 16.5 kB / 419.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01544, allocations: 0 / 419.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of Templates: time 0.003562/0.019, allocations: 2.466 MB / 422.2 MB, free: 14.29 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 4.839975428767502]