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.0007613/0.0007613, allocations: 90.05 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009124/0.0009124, allocations: 201.9 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 247.5 MB, free: 11.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1859/0.1859, allocations: 46.18 MB / 345.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002359/0.0002359, allocations: 8.375 kB / 420.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09906, allocations: 63.55 MB / 483.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001582/0.1007, allocations: 1.193 MB / 484.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008306/0.1015, allocations: 467 kB / 485.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.618e-05/0.1016, allocations: 0 / 485.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.099e-05/0.1016, allocations: 3.938 kB / 485.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.271e-05/0.1017, allocations: 7.938 kB / 485.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.1019, allocations: 23.91 kB / 485.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.102, allocations: 35.92 kB / 485.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.78e-05/0.1021, allocations: 7.938 kB / 485.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.1022, allocations: 27.92 kB / 485.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.318e-05/0.1023, allocations: 15.91 kB / 485.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.1023, allocations: 0 / 485.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.1024, allocations: 8 kB / 485.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.631e-05/0.1024, allocations: 11.92 kB / 485.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.1024, allocations: 37.64 kB / 485.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.979e-05/0.1025, allocations: 19.94 kB / 485.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1025, allocations: 4 kB / 485.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1025, allocations: 4 kB / 485.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1026, allocations: 0 / 485.6 MB, free: 2.336 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.0004188/0.103, allocations: 343.7 kB / 485.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.103, allocations: 12.86 kB / 485.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.1032, allocations: 12.94 kB / 485.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.1033, allocations: 188.2 kB / 486.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-06/0.1033, allocations: 384 / 486.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/0.1034, allocations: 384 / 486.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.1035, allocations: 67.64 kB / 486.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.1035, allocations: 0 / 486.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.1036, allocations: 0 / 486.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1036, allocations: 3.984 kB / 486.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.429e-05/0.1037, allocations: 27.98 kB / 486.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003688/0.104, allocations: 268.9 kB / 486.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.566e-05/0.1041, allocations: 34.5 kB / 486.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.248e-05/0.1042, allocations: 20.92 kB / 486.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.1042, allocations: 7.938 kB / 486.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.1043, allocations: 30.56 kB / 486.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1043, allocations: 0 / 486.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002443/0.1045, allocations: 73.7 kB / 486.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.1046, allocations: 85.05 kB / 486.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.462e-05/0.1046, allocations: 109.8 kB / 486.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.1047, allocations: 29.7 kB / 486.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.195e-05/0.1047, allocations: 88.12 kB / 486.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.1047, allocations: 3.906 kB / 486.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-05/0.1048, allocations: 17.72 kB / 487 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.1049, allocations: 310.8 kB / 487.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.345e-05/0.1049, allocations: 19.98 kB / 487.3 MB, free: 400 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.722e-05/0.105, allocations: 29.7 kB / 487.3 MB, free: 364 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.522e-05/0.1051, allocations: 32.78 kB / 487.3 MB, free: 328 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1051, allocations: 0 / 487.3 MB, free: 328 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001309/0.1052, allocations: 61.66 kB / 487.4 MB, free: 260 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.1053, allocations: 8 kB / 487.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1053, allocations: 3.984 kB / 487.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.1053, allocations: 0 / 487.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.397e-05/0.1054, allocations: 4 kB / 487.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1054, allocations: 0 / 487.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.1054, allocations: 15.98 kB / 487.4 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1055, allocations: 7.984 kB / 487.4 MB, free: 220 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 7.62e-05/0.1055, allocations: 113.8 kB / 487.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.1056, allocations: 7.906 kB / 487.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.279e-05/0.1056, allocations: 7.531 kB / 487.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1056, allocations: 0 / 487.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.1056, allocations: 0 / 487.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1056, allocations: 4 kB / 487.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.1058, allocations: 161.6 kB / 487.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1058, allocations: 0 / 487.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.1058, allocations: 7.984 kB / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1059, allocations: 4 kB / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.1059, allocations: 0 / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.1059, allocations: 4 kB / 487.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1059, allocations: 3.938 kB / 487.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.1061, allocations: 159.4 kB / 487.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.1061, allocations: 85.05 kB / 488 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.1061, allocations: 4 kB / 488 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.899e-05/0.1062, allocations: 15.98 kB / 488 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.1063, allocations: 3.984 kB / 488 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.1063, allocations: 4 kB / 488 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.021e-05/0.1063, allocations: 87.59 kB / 488.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1063, allocations: 4 kB / 488.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.1066, allocations: 8 kB / 488.1 MB, free: 15.45 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 8.695e-05/0.1066, allocations: 99.38 kB / 488.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001418/0.1068, allocations: 35.91 kB / 488.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1068, allocations: 0 / 488.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.077e-05/0.1069, allocations: 16 kB / 488.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.1071, allocations: 7.922 kB / 488.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002836/0.1074, allocations: 170.4 kB / 488.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.1076, allocations: 0.6809 MB / 489.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.02e-05/0.1076, allocations: 11.44 kB / 489.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1076, allocations: 0 / 489.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of Templates: time 0.001779/0.1094, allocations: 0.6493 MB / 489.8 MB, free: 13.72 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches