Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007638/0.0007638, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001185/0.001949, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006841/0.0006841, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001015/0.001699, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9407/0.9407, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1727/1.113, allocations: 52.48 MB / 238.5 MB, free: 7.645 MB / 234.7 MB " [Timeout remaining time 179] 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.1398/0.1398, allocations: 32.8 MB / 272 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02385/0.1636, allocations: 12.53 MB / 284.5 MB, free: 9.734 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.345e-06/2.345e-06, allocations: 0 / 285.8 MB, free: 8.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.46e-05/3.694e-05, allocations: 9.266 kB / 285.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003976/0.004013, allocations: 1.995 MB / 287.8 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009708/0.004984, allocations: 0.4986 MB / 288.3 MB, free: 5.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.005122, allocations: 7.938 kB / 288.3 MB, free: 5.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.005244, allocations: 23.73 kB / 288.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.005356, allocations: 35.69 kB / 288.4 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.005511, allocations: 47.81 kB / 288.4 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.005729, allocations: 147.3 kB / 288.6 MB, free: 5.676 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.005899, allocations: 46.48 kB / 288.6 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/0.006124, allocations: 95.8 kB / 288.7 MB, free: 5.535 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.006252, allocations: 51.81 kB / 288.8 MB, free: 5.484 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.006285, allocations: 12 kB / 288.8 MB, free: 5.473 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.634e-05/0.006311, allocations: 12 kB / 288.8 MB, free: 5.461 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.695e-05/0.006348, allocations: 23.88 kB / 288.8 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.823e-05/0.006407, allocations: 39.94 kB / 288.9 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.006609, allocations: 91.61 kB / 288.9 MB, free: 5.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635e-05/0.006625, allocations: 4 kB / 289 MB, free: 5.305 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.006626, allocations: 4 kB / 289 MB, free: 5.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.006638, allocations: 0 / 289 MB, free: 5.301 MB / 282.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.0005895/0.007228, allocations: 360 kB / 289.3 MB, free: 4.926 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.007266, allocations: 8.031 kB / 289.3 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.986e-05/0.007326, allocations: 20.92 kB / 289.3 MB, free: 4.898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.007544, allocations: 145.5 kB / 289.5 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.007564, allocations: 12.38 kB / 289.5 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.007602, allocations: 12.38 kB / 289.5 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.007813, allocations: 107.4 kB / 289.6 MB, free: 4.594 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.007827, allocations: 4.188 kB / 289.6 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.007841, allocations: 8.125 kB / 289.6 MB, free: 4.582 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.007849, allocations: 4 kB / 289.6 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.607e-05/0.007925, allocations: 35.91 kB / 289.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005761/0.008501, allocations: 287.8 kB / 289.9 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.008643, allocations: 74.53 kB / 290 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.939e-05/0.008692, allocations: 36.77 kB / 290 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.008715, allocations: 4 kB / 290.1 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.008742, allocations: 34.5 kB / 290.1 MB, free: 4.078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.635e-06/0.008745, allocations: 4 kB / 290.1 MB, free: 4.074 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.00124/0.009985, allocations: 0.5499 MB / 290.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.01003, allocations: 59.41 kB / 290.7 MB, free: 3.398 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.01013, allocations: 134.2 kB / 290.8 MB, free: 3.258 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.01015, allocations: 29.7 kB / 290.9 MB, free: 3.223 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.01021, allocations: 112.4 kB / 291 MB, free: 3.109 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.987e-05/0.01026, allocations: 67.42 kB / 291 MB, free: 3.043 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.01039, allocations: 37.69 kB / 291.1 MB, free: 3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.01049, allocations: 318.8 kB / 291.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.304e-05/0.01053, allocations: 12 kB / 291.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-05/0.01059, allocations: 49.47 kB / 291.4 MB, free: 2.609 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.01071, allocations: 95.23 kB / 291.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01071, allocations: 0 / 291.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002244/0.01093, allocations: 130.2 kB / 291.7 MB, free: 2.367 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.01095, allocations: 4 kB / 291.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.01096, allocations: 4 kB / 291.7 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001385/0.0111, allocations: 36.81 kB / 291.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.0113, allocations: 47.91 kB / 291.8 MB, free: 2.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.0126, allocations: 1.434 MB / 293.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.01267, allocations: 8.234 kB / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.01268, allocations: 4 kB / 293.2 MB, free: 0.7422 MB / 282.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 8.9e-05/0.01277, allocations: 125.7 kB / 293.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.0128, allocations: 20.03 kB / 293.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.735e-05/0.01284, allocations: 20.77 kB / 293.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.01284, allocations: 0 / 293.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.01285, allocations: 0 / 293.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.01285, allocations: 0 / 293.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.01335, allocations: 348 kB / 293.7 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.01335, allocations: 0 / 293.7 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.01352, allocations: 39.97 kB / 293.7 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.847e-05/0.01354, allocations: 23.88 kB / 293.8 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001037/0.01364, allocations: 32.83 kB / 293.8 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.01365, allocations: 0 / 293.8 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008295/0.01448, allocations: 1.218 MB / 295 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01448, allocations: 4 kB / 295 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.01475, allocations: 247.6 kB / 295.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.01477, allocations: 8 kB / 295.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.283e-05/0.01485, allocations: 7.922 kB / 295.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.0149, allocations: 19.92 kB / 295.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.01491, allocations: 3.984 kB / 295.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.01494, allocations: 20.84 kB / 295.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01494, allocations: 0 / 295.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000314/0.01526, allocations: 40 kB / 295.4 MB, free: 14.43 MB / 298.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.0001237/0.01538, allocations: 88.44 kB / 295.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003651/0.01574, allocations: 215.2 kB / 295.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.01576, allocations: 7.969 kB / 295.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.01596, allocations: 182.3 kB / 295.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.0163, allocations: 172.8 kB / 296 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003906/0.02021, allocations: 341.8 kB / 296.3 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.531e-05/0.02027, allocations: 76.22 kB / 296.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.503e-05/0.02034, allocations: 17.48 kB / 296.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.02044, allocations: 67.36 kB / 296.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02044, allocations: 4 kB / 296.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of Templates: time 0.005145/0.02558, allocations: 1.901 MB / 298.4 MB, free: 11.3 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6885092621669173]