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.001384/0.001384, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001574/0.001574, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.455/1.455, allocations: 177.2 MB / 204.9 MB, free: 8.961 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.2157/0.2157, allocations: 34.26 MB / 295.5 MB, free: 14.61 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.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 0.00203/0.00203, allocations: 71.88 kB / 443.1 MB, free: 6.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3831, allocations: 66 MB / 0.4972 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002667/0.3858, allocations: 1.473 MB / 0.4986 GB, free: 28.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007695/0.3865, allocations: 446 kB / 0.4991 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-05/0.3866, allocations: 3.938 kB / 0.4991 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.182e-05/0.3866, allocations: 7.125 kB / 0.4991 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.786e-05/0.3867, allocations: 11.92 kB / 0.4991 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.3869, allocations: 28.78 kB / 0.4991 GB, free: 28.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.387, allocations: 39.25 kB / 0.4992 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.961e-05/0.3871, allocations: 3.188 kB / 0.4992 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.3872, allocations: 24.58 kB / 0.4992 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.126e-05/0.3873, allocations: 17.86 kB / 0.4992 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.3873, allocations: 3.094 kB / 0.4992 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.429e-05/0.3874, allocations: 6.469 kB / 0.4992 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.3874, allocations: 4 kB / 0.4992 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.658e-05/0.3874, allocations: 18.48 kB / 0.4992 GB, free: 28.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.3875, allocations: 38.55 kB / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3875, allocations: 3.938 kB / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3875, allocations: 0 / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.3875, allocations: 0 / 0.4993 GB, free: 28.45 MB / 446.1 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.0004253/0.3879, allocations: 275.8 kB / 0.4995 GB, free: 28.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.388, allocations: 9.469 kB / 0.4995 GB, free: 28.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.3881, allocations: 18.03 kB / 0.4996 GB, free: 28.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.3883, allocations: 117.1 kB / 0.4997 GB, free: 28.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.874e-06/0.3883, allocations: 8.359 kB / 0.4997 GB, free: 28.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.3883, allocations: 7.5 kB / 0.4997 GB, free: 28.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.3885, allocations: 85.78 kB / 0.4998 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3885, allocations: 3.156 kB / 0.4998 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.3885, allocations: 0 / 0.4998 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3885, allocations: 0 / 0.4998 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.245e-05/0.3886, allocations: 20.16 kB / 0.4998 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.3889, allocations: 215.5 kB / 0.5 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.296e-05/0.3889, allocations: 35.52 kB / 0.5 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.322e-05/0.389, allocations: 18.75 kB / 0.5 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.389, allocations: 0 / 0.5 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.389, allocations: 30.56 kB / 0.5001 GB, free: 27.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 7.02e-07/0.389, allocations: 3.188 kB / 0.5001 GB, free: 27.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002191/0.3892, allocations: 63.62 kB / 0.5001 GB, free: 27.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.3893, allocations: 77.11 kB / 0.5002 GB, free: 27.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.3893, allocations: 110.1 kB / 0.5003 GB, free: 27.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.3893, allocations: 33.08 kB / 0.5004 GB, free: 27.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.094e-05/0.3894, allocations: 83.52 kB / 0.5004 GB, free: 27.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.3894, allocations: 15.89 kB / 0.5004 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.3894, allocations: 12.97 kB / 0.5005 GB, free: 27.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/0.3895, allocations: 321.4 kB / 0.5008 GB, free: 26.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.51e-05/0.3895, allocations: 10.38 kB / 0.5008 GB, free: 26.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-05/0.3896, allocations: 48.98 kB / 0.5008 GB, free: 26.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.368e-05/0.3896, allocations: 36.75 kB / 0.5009 GB, free: 26.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3896, allocations: 0 / 0.5009 GB, free: 26.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001057/0.3897, allocations: 60.48 kB / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.3898, allocations: 7.688 kB / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3898, allocations: 3.562 kB / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3898, allocations: 0 / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.467e-05/0.3898, allocations: 3.25 kB / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3898, allocations: 0 / 0.5009 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.018e-05/0.3899, allocations: 13.2 kB / 0.5009 GB, free: 26.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.3899, allocations: 2.906 kB / 0.5009 GB, free: 26.81 MB / 446.1 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 6.249e-05/0.39, allocations: 121 kB / 0.5011 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.39, allocations: 0 / 0.5011 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.39, allocations: 10.72 kB / 0.5011 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.39, allocations: 4 kB / 0.5011 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.39, allocations: 0 / 0.5011 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.39, allocations: 0 / 0.5011 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.3901, allocations: 111.4 kB / 0.5012 GB, free: 26.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3901, allocations: 7.875 kB / 0.5012 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.3902, allocations: 3.031 kB / 0.5012 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3902, allocations: 3.984 kB / 0.5012 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3902, allocations: 10.73 kB / 0.5012 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3902, allocations: 0 / 0.5012 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3902, allocations: 0 / 0.5012 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.3903, allocations: 153.9 kB / 0.5014 GB, free: 26.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-06/0.3903, allocations: 3.938 kB / 0.5014 GB, free: 26.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.3903, allocations: 0 / 0.5014 GB, free: 26.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-05/0.3904, allocations: 13.75 kB / 0.5014 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/0.3905, allocations: 6.719 kB / 0.5014 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3905, allocations: 0 / 0.5014 GB, free: 26.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.277e-05/0.3905, allocations: 92.31 kB / 0.5015 GB, free: 26.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3905, allocations: 0 / 0.5015 GB, free: 26.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.3907, allocations: 7.188 kB / 0.5015 GB, free: 26.3 MB / 446.1 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.73e-05/0.3908, allocations: 96.44 kB / 0.5016 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.3909, allocations: 27.69 kB / 0.5016 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3909, allocations: 0 / 0.5016 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.337e-05/0.391, allocations: 9.766 kB / 0.5016 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.3912, allocations: 14.41 kB / 0.5016 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.3915, allocations: 134 kB / 0.5017 GB, free: 26.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.791e-05/0.3915, allocations: 68.75 kB / 0.5018 GB, free: 26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.538e-05/0.3915, allocations: 0 / 0.5018 GB, free: 26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.051e-05/0.3916, allocations: 11.88 kB / 0.5018 GB, free: 25.99 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3916, allocations: 0 / 0.5018 GB, free: 25.99 MB / 446.1 MB Notification: Performance of Templates: time 0.002905/0.3945, allocations: 0.624 MB / 0.5024 GB, free: 25.9 MB / 446.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/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.980173389078118]