Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 85.39 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 161.8 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 177 MB / 204.1 MB, free: 9.199 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 34.26 MB / 294.8 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 442.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.815e-05, allocations: 2.281 kB / 442.6 MB, free: 5.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003342/0.00337, allocations: 1.882 MB / 444.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009861/0.004356, allocations: 0.5374 MB / 445 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.955e-05/0.004446, allocations: 3.938 kB / 445.1 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.00457, allocations: 19.8 kB / 445.1 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.004673, allocations: 47.56 kB / 445.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.004894, allocations: 43.88 kB / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.005104, allocations: 163.2 kB / 445.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.005243, allocations: 33.86 kB / 445.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/0.005442, allocations: 99.78 kB / 445.5 MB, free: 2.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.005556, allocations: 43.88 kB / 445.5 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.005584, allocations: 12 kB / 445.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.826e-05/0.005642, allocations: 19.94 kB / 445.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.414e-05/0.005687, allocations: 27.91 kB / 445.6 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.005756, allocations: 47.84 kB / 445.6 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.005992, allocations: 155.5 kB / 445.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.005996, allocations: 0 / 445.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.005997, allocations: 0 / 445.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.006002, allocations: 3.938 kB / 445.8 MB, free: 2.219 MB / 366.1 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.0005874/0.006589, allocations: 361.7 kB / 446.1 MB, free: 1.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.006627, allocations: 15.95 kB / 446.1 MB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.006781, allocations: 24.84 kB / 446.1 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.007038, allocations: 149 kB / 446.3 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.007055, allocations: 8.375 kB / 446.3 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.432e-05/0.00709, allocations: 16.38 kB / 446.3 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.007358, allocations: 126.2 kB / 446.4 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.007374, allocations: 4.141 kB / 446.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.007392, allocations: 12.12 kB / 446.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-06/0.007397, allocations: 4 kB / 446.5 MB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.007588, allocations: 83.94 kB / 446.5 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006426/0.008231, allocations: 387.9 kB / 446.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.008461, allocations: 102.5 kB / 447 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.008572, allocations: 52.83 kB / 447.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.008594, allocations: 0 / 447.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.008628, allocations: 46.5 kB / 447.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.062e-06/0.00863, allocations: 0 / 447.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001473/0.0101, allocations: 0.6519 MB / 447.8 MB, free: 36 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1939/0.204, allocations: 57.19 kB / 447.8 MB, free: 19.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.2043, allocations: 125.6 kB / 447.9 MB, free: 19.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.2043, allocations: 32.33 kB / 448 MB, free: 19.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.735e-05/0.2044, allocations: 116.4 kB / 448.1 MB, free: 19.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.2045, allocations: 69.16 kB / 448.2 MB, free: 19.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.2046, allocations: 34.41 kB / 448.2 MB, free: 19.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.813e-05/0.2047, allocations: 326.8 kB / 448.5 MB, free: 18.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.2048, allocations: 44.03 kB / 448.6 MB, free: 18.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.205, allocations: 80.17 kB / 448.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.2052, allocations: 132.8 kB / 448.8 MB, free: 18.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2052, allocations: 1.031 kB / 448.8 MB, free: 18.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004532/0.2056, allocations: 206.4 kB / 449 MB, free: 18.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.2057, allocations: 5.75 kB / 449 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.2057, allocations: 1.062 kB / 449 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002036/0.2059, allocations: 41 kB / 449 MB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.2061, allocations: 36.58 kB / 449.1 MB, free: 18.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.2074, allocations: 1.595 MB / 450.6 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.551e-05/0.2075, allocations: 9 kB / 450.7 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.2075, allocations: 5.625 kB / 450.7 MB, free: 17.23 MB / 366.1 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 0.0001086/0.2076, allocations: 140.6 kB / 450.8 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.2076, allocations: 12.94 kB / 450.8 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.079e-05/0.2077, allocations: 20.42 kB / 450.8 MB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2077, allocations: 2.312 kB / 450.8 MB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.2077, allocations: 1.969 kB / 450.8 MB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2077, allocations: 0.5156 kB / 450.8 MB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007147/0.2084, allocations: 485.3 kB / 451.3 MB, free: 16.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2084, allocations: 1.188 kB / 451.3 MB, free: 16.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.2086, allocations: 33.67 kB / 451.3 MB, free: 16.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.2087, allocations: 32.47 kB / 451.4 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2087, allocations: 5.781 kB / 451.4 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000842/0.2095, allocations: 1.348 MB / 452.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2095, allocations: 2.25 kB / 452.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.21, allocations: 340.3 kB / 453.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.886e-05/0.21, allocations: 17.47 kB / 453.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.2101, allocations: 5.688 kB / 453.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.2101, allocations: 4.688 kB / 453.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/0.2102, allocations: 18.41 kB / 453.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2102, allocations: 5.375 kB / 453.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.047e-05/0.2103, allocations: 102.9 kB / 453.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2103, allocations: 0 / 453.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.2106, allocations: 38.36 kB / 453.3 MB, free: 15.09 MB / 366.1 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.0001119/0.2107, allocations: 102.5 kB / 453.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000502/0.2112, allocations: 259.4 kB / 453.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2112, allocations: 0 / 453.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.2115, allocations: 187.4 kB / 453.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.2118, allocations: 28.17 kB / 453.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007331/0.2125, allocations: 388.1 kB / 454.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.2126, allocations: 105.2 kB / 454.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.289e-05/0.2127, allocations: 15.61 kB / 454.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.2127, allocations: 16.08 kB / 454.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2127, allocations: 4 kB / 454.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Templates: time 0.006095/0.2188, allocations: 1.584 MB / 455.9 MB, free: 14.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.00179435685277]