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.001197/0.001197, allocations: 121 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 208.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 75.88 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1134, allocations: 62.46 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002765/0.1162, allocations: 1.459 MB / 482.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007798/0.117, allocations: 478.8 kB / 483.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.1171, allocations: 0 / 483.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.1171, allocations: 3.938 kB / 483.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.648e-05/0.1172, allocations: 7.938 kB / 483.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.1174, allocations: 27.91 kB / 483.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.461e-05/0.1175, allocations: 35.86 kB / 483.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.02e-05/0.1176, allocations: 11.97 kB / 483.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.1177, allocations: 19.94 kB / 483.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.66e-05/0.1178, allocations: 19.91 kB / 483.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.1178, allocations: 4 kB / 483.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.113e-05/0.1179, allocations: 11.94 kB / 483.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.268e-05/0.1179, allocations: 7.984 kB / 483.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.662e-05/0.1179, allocations: 11.94 kB / 483.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.118, allocations: 39.89 kB / 483.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.118, allocations: 0 / 483.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.118, allocations: 0 / 483.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1181, allocations: 0 / 483.6 MB, free: 2.398 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.0004295/0.1185, allocations: 355.3 kB / 483.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.1185, allocations: 8.031 kB / 483.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.1187, allocations: 16.83 kB / 484 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.1189, allocations: 188.1 kB / 484.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1189, allocations: 384 / 484.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.1189, allocations: 4.375 kB / 484.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.1191, allocations: 67.64 kB / 484.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1191, allocations: 0 / 484.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.1191, allocations: 0 / 484.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1191, allocations: 4 kB / 484.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.351e-05/0.1192, allocations: 19.98 kB / 484.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003374/0.1195, allocations: 268.8 kB / 484.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.218e-05/0.1196, allocations: 30.56 kB / 484.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.417e-05/0.1197, allocations: 16.91 kB / 484.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.1197, allocations: 0 / 484.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1197, allocations: 38.56 kB / 484.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1197, allocations: 0 / 484.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002144/0.12, allocations: 69.61 kB / 484.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.12, allocations: 77.11 kB / 484.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.1201, allocations: 109.8 kB / 484.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1201, allocations: 29.7 kB / 484.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.1202, allocations: 88.25 kB / 484.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.1202, allocations: 11.91 kB / 485 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.1202, allocations: 9.719 kB / 485 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.1204, allocations: 322.8 kB / 485.3 MB, free: 484 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.398e-05/0.1204, allocations: 8 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.721e-05/0.1205, allocations: 29.7 kB / 485.3 MB, free: 440 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.123e-05/0.1205, allocations: 28.78 kB / 485.4 MB, free: 408 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1206, allocations: 4.031 kB / 485.4 MB, free: 404 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001193/0.1207, allocations: 57.53 kB / 485.4 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1207, allocations: 11.98 kB / 485.4 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1207, allocations: 0 / 485.4 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1207, allocations: 0 / 485.4 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.013e-05/0.1208, allocations: 4 kB / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1208, allocations: 0 / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.219e-05/0.1209, allocations: 11.92 kB / 485.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.1209, allocations: 0 / 485.4 MB, free: 312 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.97e-05/0.1209, allocations: 121.8 kB / 485.6 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.121, allocations: 4.375 kB / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.35e-05/0.121, allocations: 7.531 kB / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.121, allocations: 0 / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.121, allocations: 0 / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.121, allocations: 7.922 kB / 485.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.1212, allocations: 161.7 kB / 485.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1212, allocations: 3.984 kB / 485.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.955e-05/0.1212, allocations: 7.938 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1213, allocations: 4 kB / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.1213, allocations: 0 / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1213, allocations: 0 / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1213, allocations: 0 / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.1214, allocations: 159.4 kB / 485.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.1215, allocations: 77.11 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.1215, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.445e-05/0.1216, allocations: 16.02 kB / 486 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.1216, allocations: 3.984 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.1216, allocations: 8 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.065e-05/0.1217, allocations: 83.28 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1217, allocations: 0 / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002108/0.1219, allocations: 8 kB / 486.1 MB, free: 15.55 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 9.033e-05/0.122, allocations: 103.2 kB / 486.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.1222, allocations: 27.98 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1222, allocations: 0 / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.825e-05/0.1222, allocations: 15.98 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.1224, allocations: 7.938 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.1227, allocations: 122.5 kB / 486.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.1229, allocations: 0.6845 MB / 487.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.031e-05/0.123, allocations: 8.281 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.123, allocations: 15.44 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of SimCode: time 1.854e-06/0.123, allocations: 0 / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of Templates: time 0.002424/0.1254, allocations: 0.5934 MB / 487.7 MB, free: 13.92 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 -s cvode -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