Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001795/0.001795, allocations: 85.31 kB / 20.68 MB, free: 1.035 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.002148/0.002148, allocations: 165.6 kB / 23.95 MB, free: 4.168 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.555/1.555, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.1 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.213/0.213, allocations: 34.27 MB / 294.9 MB, free: 14.59 MB / 286.1 MB " [Timeout remaining time 180] 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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 442.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.86e-05, allocations: 5.516 kB / 442.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.0033/0.003329, allocations: 1.879 MB / 444.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.004413, allocations: 0.5336 MB / 445.1 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.795e-05/0.004511, allocations: 3.938 kB / 445.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.004646, allocations: 19.8 kB / 445.1 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.004764, allocations: 47.56 kB / 445.1 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.005015, allocations: 51.88 kB / 445.2 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.005235, allocations: 151.2 kB / 445.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.005399, allocations: 45.83 kB / 445.4 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.005607, allocations: 91.78 kB / 445.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.005721, allocations: 47.88 kB / 445.5 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.005749, allocations: 15.94 kB / 445.5 MB, free: 2.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.033e-05/0.005809, allocations: 19.94 kB / 445.5 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.519e-05/0.005844, allocations: 27.91 kB / 445.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.207e-05/0.005906, allocations: 43.91 kB / 445.6 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.006166, allocations: 155.5 kB / 445.8 MB, free: 2.297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.006172, allocations: 8 kB / 445.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.006173, allocations: 0 / 445.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.006183, allocations: 0 / 445.8 MB, free: 2.289 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.0006325/0.006816, allocations: 361.7 kB / 446.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.006855, allocations: 8.031 kB / 446.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.007017, allocations: 28.83 kB / 446.2 MB, free: 1.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.007268, allocations: 145.6 kB / 446.3 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.00728, allocations: 8.375 kB / 446.3 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.007327, allocations: 20.38 kB / 446.3 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.007634, allocations: 126.7 kB / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.007651, allocations: 4.141 kB / 446.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.00767, allocations: 8.125 kB / 446.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.007675, allocations: 4 kB / 446.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.007873, allocations: 83.94 kB / 446.6 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006725/0.008545, allocations: 380 kB / 446.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002421/0.008788, allocations: 110.5 kB / 447 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.008907, allocations: 60.81 kB / 447.1 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.008923, allocations: 0 / 447.1 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.008951, allocations: 38.5 kB / 447.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.002e-06/0.008952, allocations: 0 / 447.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001644/0.0106, allocations: 0.6616 MB / 447.8 MB, free: 108 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.01064, allocations: 63.28 kB / 447.9 MB, free: 32 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2148/0.2255, allocations: 121.9 kB / 448 MB, free: 19.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.2255, allocations: 26.95 kB / 448 MB, free: 19.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.2256, allocations: 119.8 kB / 448.1 MB, free: 19.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.919e-05/0.2256, allocations: 67.59 kB / 448.2 MB, free: 19.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.2257, allocations: 34.94 kB / 448.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.2258, allocations: 321.7 kB / 448.5 MB, free: 18.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2259, allocations: 43.22 kB / 448.6 MB, free: 18.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.226, allocations: 75.03 kB / 448.7 MB, free: 18.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.2263, allocations: 134.1 kB / 448.8 MB, free: 18.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2263, allocations: 1.156 kB / 448.8 MB, free: 18.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004344/0.2267, allocations: 205.5 kB / 449 MB, free: 18.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.2267, allocations: 6.141 kB / 449 MB, free: 18.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2267, allocations: 1.219 kB / 449 MB, free: 18.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002027/0.2269, allocations: 43.69 kB / 449 MB, free: 18.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2271, allocations: 38 kB / 449.1 MB, free: 18.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.2284, allocations: 1.598 MB / 450.7 MB, free: 17.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.305e-05/0.2285, allocations: 8.656 kB / 450.7 MB, free: 17.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.2285, allocations: 5.281 kB / 450.7 MB, free: 17.35 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.0001036/0.2286, allocations: 139.6 kB / 450.8 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.2286, allocations: 14.2 kB / 450.8 MB, free: 17.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.2287, allocations: 16.08 kB / 450.8 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2287, allocations: 3.328 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2287, allocations: 1.703 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2287, allocations: 0.6562 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007415/0.2294, allocations: 486.6 kB / 451.3 MB, free: 16.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2294, allocations: 0 / 451.3 MB, free: 16.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.2296, allocations: 33.91 kB / 451.4 MB, free: 16.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001091/0.2297, allocations: 34.14 kB / 451.4 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2297, allocations: 3.281 kB / 451.4 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009399/0.2307, allocations: 1.352 MB / 452.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2307, allocations: 7.016 kB / 452.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.2312, allocations: 339.8 kB / 453.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.947e-05/0.2312, allocations: 17.23 kB / 453.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2312, allocations: 2.172 kB / 453.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.2313, allocations: 8.156 kB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.549e-05/0.2314, allocations: 12.95 kB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.2314, allocations: 12.41 kB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.581e-05/0.2315, allocations: 96.08 kB / 453.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2315, allocations: 3.062 kB / 453.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.2318, allocations: 42.59 kB / 453.3 MB, free: 15.21 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.0001166/0.2319, allocations: 96.73 kB / 453.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.2325, allocations: 258.1 kB / 453.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.2325, allocations: 2.969 kB / 453.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.2327, allocations: 195 kB / 453.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.2331, allocations: 20.78 kB / 453.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007028/0.2338, allocations: 385.3 kB / 454.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.7e-05/0.2339, allocations: 108.5 kB / 454.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.955e-05/0.2339, allocations: 17.84 kB / 454.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.234, allocations: 14.78 kB / 454.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.234, allocations: 0 / 454.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of Templates: time 0.005789/0.2398, allocations: 1.577 MB / 455.9 MB, free: 14.29 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.139059517532587]