Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008735/0.0008735, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1756/0.1756, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.000221, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08905/0.08928, allocations: 63.56 MB / 483.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001357/0.09068, allocations: 1.189 MB / 484.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006882/0.09138, allocations: 474.9 kB / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.09143, allocations: 0 / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.09145, allocations: 3.984 kB / 484.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.13e-05/0.0915, allocations: 3.938 kB / 484.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.09167, allocations: 27.97 kB / 484.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.687e-05/0.09175, allocations: 31.86 kB / 484.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.902e-05/0.09183, allocations: 4 kB / 484.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.933e-05/0.09193, allocations: 23.92 kB / 484.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.09201, allocations: 23.91 kB / 484.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.09202, allocations: 0 / 484.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.595e-05/0.09207, allocations: 8 kB / 484.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.09209, allocations: 7.922 kB / 484.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.09212, allocations: 37.64 kB / 484.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.445e-05/0.09221, allocations: 35.88 kB / 484.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.09222, allocations: 0 / 484.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09223, allocations: 0 / 484.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.317e-06/0.09224, allocations: 0 / 484.9 MB, free: 2.27 MB / 350.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.0003828/0.09262, allocations: 355.7 kB / 485.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.09266, allocations: 8.875 kB / 485.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.0928, allocations: 16.92 kB / 485.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.09295, allocations: 180.2 kB / 485.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.09297, allocations: 384 / 485.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.09298, allocations: 4.375 kB / 485.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.09313, allocations: 63.72 kB / 485.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-06/0.09314, allocations: 0 / 485.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.09315, allocations: 0 / 485.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.09317, allocations: 7.984 kB / 485.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.996e-05/0.09326, allocations: 19.98 kB / 485.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003221/0.09359, allocations: 272.8 kB / 485.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.74e-05/0.09369, allocations: 30.56 kB / 485.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.783e-05/0.09375, allocations: 12.92 kB / 485.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.09377, allocations: 7.984 kB / 485.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.0938, allocations: 46.48 kB / 485.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.09381, allocations: 3.938 kB / 485.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002273/0.09404, allocations: 73.52 kB / 486 MB, free: 1.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.09409, allocations: 77.11 kB / 486.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.092e-05/0.09417, allocations: 113.8 kB / 486.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.09419, allocations: 29.83 kB / 486.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.36e-05/0.09424, allocations: 84.14 kB / 486.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.09426, allocations: 7.906 kB / 486.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.09429, allocations: 9.719 kB / 486.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.09439, allocations: 318.8 kB / 486.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.824e-05/0.09444, allocations: 8 kB / 486.6 MB, free: 336 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.608e-05/0.09451, allocations: 33.7 kB / 486.7 MB, free: 296 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.283e-05/0.0946, allocations: 32.78 kB / 486.7 MB, free: 260 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.09461, allocations: 0 / 486.7 MB, free: 260 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001403/0.09475, allocations: 69.61 kB / 486.8 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.09477, allocations: 4 kB / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.09478, allocations: 0 / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.09479, allocations: 32 / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.09486, allocations: 8 kB / 486.8 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.09487, allocations: 0 / 486.8 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.191e-05/0.09494, allocations: 11.98 kB / 486.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-06/0.09495, allocations: 4 kB / 486.8 MB, free: 156 kB / 350.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.734e-05/0.09502, allocations: 113.8 kB / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.09506, allocations: 7.906 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.009e-05/0.09508, allocations: 11.52 kB / 486.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.09509, allocations: 0 / 486.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.09511, allocations: 4 kB / 486.9 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.09511, allocations: 0 / 486.9 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.09527, allocations: 165.6 kB / 487.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.09528, allocations: 0 / 487.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.132e-05/0.09533, allocations: 8 kB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.09534, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.09535, allocations: 8.312 kB / 487.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.09536, allocations: 0 / 487.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.09536, allocations: 0 / 487.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.09553, allocations: 159.5 kB / 487.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.09558, allocations: 88.89 kB / 487.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.09561, allocations: 4 kB / 487.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/0.0957, allocations: 16.02 kB / 487.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.509e-05/0.09575, allocations: 7.984 kB / 487.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.09576, allocations: 0 / 487.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.372e-05/0.0958, allocations: 91.27 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09581, allocations: 0 / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002174/0.09603, allocations: 4 kB / 487.5 MB, free: 15.38 MB / 366.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.986e-05/0.09612, allocations: 91.25 kB / 487.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.09626, allocations: 39.92 kB / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09627, allocations: 0 / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.285e-05/0.09633, allocations: 15.98 kB / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.09654, allocations: 7.938 kB / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.09679, allocations: 140.7 kB / 487.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.097, allocations: 0.677 MB / 488.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.72e-05/0.09704, allocations: 4.234 kB / 488.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.338e-05/0.09708, allocations: 11.42 kB / 488.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09708, allocations: 3.938 kB / 488.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Templates: time 0.002175/0.09926, allocations: 0.4956 MB / 488.9 MB, free: 13.84 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches