Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.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.0007599/0.0007599, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004026/0.004026, allocations: 160.7 kB / 24.7 MB, free: 9.43 MB / 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 0.8799/0.8799, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2417/0.2417, allocations: 34.25 MB / 295.7 MB, free: 0.6992 MB / 266.7 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.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.901e-05, allocations: 2.281 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.204/0.204, allocations: 1.464 MB / 444.9 MB, free: 43.79 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007286/0.2047, allocations: 453.4 kB / 445.3 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.092e-05/0.2048, allocations: 4 kB / 445.3 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.827e-05/0.2048, allocations: 3.938 kB / 445.3 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.845e-05/0.2048, allocations: 7.812 kB / 445.3 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.2051, allocations: 23.34 kB / 445.4 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.2052, allocations: 40.33 kB / 445.4 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.2053, allocations: 10.5 kB / 445.4 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.2054, allocations: 31.3 kB / 445.5 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.277e-05/0.2055, allocations: 16.95 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.2055, allocations: 2.594 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.224e-05/0.2056, allocations: 5.125 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.2056, allocations: 11.2 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.2056, allocations: 9.156 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.2057, allocations: 46.98 kB / 445.5 MB, free: 43.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2057, allocations: 0 / 445.5 MB, free: 43.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2057, allocations: 0 / 445.5 MB, free: 43.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.2057, allocations: 0 / 445.5 MB, free: 43.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000388/0.2061, allocations: 277.7 kB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.2062, allocations: 11.41 kB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.2063, allocations: 13.05 kB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.2065, allocations: 120.7 kB / 446 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.2065, allocations: 3.25 kB / 446 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.2065, allocations: 3.844 kB / 446 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.2067, allocations: 91.3 kB / 446.1 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2067, allocations: 192 / 446.1 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2067, allocations: 4.312 kB / 446.1 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.2067, allocations: 3.938 kB / 446.1 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.181e-05/0.2068, allocations: 25.66 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002588/0.207, allocations: 200.2 kB / 446.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.416e-05/0.2071, allocations: 34.25 kB / 446.3 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.728e-05/0.2071, allocations: 21.95 kB / 446.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.2071, allocations: 2.906 kB / 446.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.2072, allocations: 37.44 kB / 446.4 MB, free: 42.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.2072, allocations: 0 / 446.4 MB, free: 42.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001802/0.2073, allocations: 69.88 kB / 446.4 MB, free: 42.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.2074, allocations: 77.11 kB / 446.5 MB, free: 42.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.782e-05/0.2074, allocations: 108.6 kB / 446.6 MB, free: 42.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-06/0.2074, allocations: 29.83 kB / 446.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.646e-05/0.2074, allocations: 86.86 kB / 446.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.2075, allocations: 6.953 kB / 446.7 MB, free: 42.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.2075, allocations: 19.59 kB / 446.8 MB, free: 42.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.82e-05/0.2075, allocations: 321.7 kB / 447.1 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.927e-05/0.2076, allocations: 8.594 kB / 447.1 MB, free: 42.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.162e-05/0.2076, allocations: 51.34 kB / 447.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.435e-05/0.2076, allocations: 23.36 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2076, allocations: 3.234 kB / 447.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.315e-05/0.2077, allocations: 58.48 kB / 447.2 MB, free: 42.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2077, allocations: 9.688 kB / 447.2 MB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2077, allocations: 3.281 kB / 447.2 MB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2078, allocations: 4.25 kB / 447.2 MB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.2078, allocations: 6.844 kB / 447.2 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2078, allocations: 0 / 447.2 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.695e-05/0.2078, allocations: 9.078 kB / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.2079, allocations: 0 / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 4.603e-05/0.2079, allocations: 112.7 kB / 447.4 MB, free: 41.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.2079, allocations: 14.83 kB / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541e-05/0.2079, allocations: 7.094 kB / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2079, allocations: 2.875 kB / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2079, allocations: 0 / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2079, allocations: 0 / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.002e-05/0.208, allocations: 110.2 kB / 447.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.208, allocations: 0 / 447.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.608e-05/0.208, allocations: 10.17 kB / 447.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.208, allocations: 1.5 kB / 447.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.208, allocations: 8.594 kB / 447.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.208, allocations: 4 kB / 447.5 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.208, allocations: 0 / 447.5 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.754e-05/0.2081, allocations: 147.6 kB / 447.7 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.106e-06/0.2081, allocations: 6.891 kB / 447.7 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.2082, allocations: 3.938 kB / 447.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.775e-05/0.2082, allocations: 9.078 kB / 447.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.2082, allocations: 9.812 kB / 447.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.2082, allocations: 1.078 kB / 447.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.307e-05/0.2083, allocations: 90.88 kB / 447.8 MB, free: 41.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2083, allocations: 4.312 kB / 447.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001405/0.2084, allocations: 5.875 kB / 447.8 MB, free: 41.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 7.472e-05/0.2085, allocations: 94.33 kB / 447.9 MB, free: 41.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.2086, allocations: 29.12 kB / 447.9 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.2086, allocations: 0 / 447.9 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.433e-05/0.2086, allocations: 19.77 kB / 447.9 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.2088, allocations: 2.938 kB / 447.9 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002443/0.209, allocations: 146.3 kB / 448.1 MB, free: 41.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.871e-05/0.209, allocations: 63.44 kB / 448.1 MB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.87e-05/0.2091, allocations: 14.44 kB / 448.2 MB, free: 41.29 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2091, allocations: 0 / 448.2 MB, free: 41.29 MB / 410.7 MB Notification: Performance of Templates: time 0.001631/0.2107, allocations: 0.685 MB / 448.8 MB, free: 41.27 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.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.439200473949313]