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.001362/0.001362, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 9.016 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2145/0.2145, allocations: 46.1 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 80.33 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1073, allocations: 62.43 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002786/0.1101, allocations: 1.521 MB / 481.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008911/0.111, allocations: 486.9 kB / 481.9 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.858e-05/0.1111, allocations: 0 / 481.9 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.498e-05/0.1111, allocations: 0 / 481.9 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.835e-05/0.1112, allocations: 7.922 kB / 481.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/0.1114, allocations: 27.84 kB / 482 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.377e-05/0.1116, allocations: 35.86 kB / 482 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.132e-05/0.1116, allocations: 8 kB / 482 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.1118, allocations: 19.98 kB / 482 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.1119, allocations: 23.91 kB / 482 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.1119, allocations: 0 / 482 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.282e-05/0.1119, allocations: 4 kB / 482 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.112, allocations: 7.938 kB / 482.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.295e-05/0.112, allocations: 15.92 kB / 482.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.622e-05/0.1121, allocations: 23.95 kB / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1121, allocations: 0 / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1121, allocations: 0 / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1121, allocations: 3.938 kB / 482.1 MB, free: 3.516 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.0004615/0.1126, allocations: 355.7 kB / 482.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1126, allocations: 8.875 kB / 482.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.1128, allocations: 16.83 kB / 482.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.113, allocations: 180.2 kB / 482.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.113, allocations: 384 / 482.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.113, allocations: 8.312 kB / 482.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.1132, allocations: 63.7 kB / 482.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.1132, allocations: 0 / 482.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1132, allocations: 0 / 482.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1132, allocations: 4 kB / 482.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.361e-05/0.1133, allocations: 23.92 kB / 482.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.1137, allocations: 260.9 kB / 483 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.158e-05/0.1138, allocations: 34.56 kB / 483 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.95e-05/0.1139, allocations: 16.92 kB / 483 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.1139, allocations: 0 / 483 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.114, allocations: 30.56 kB / 483.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.114, allocations: 0 / 483.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002534/0.1142, allocations: 69.61 kB / 483.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.1143, allocations: 81.23 kB / 483.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.204e-05/0.1144, allocations: 113.8 kB / 483.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.1144, allocations: 25.7 kB / 483.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.1145, allocations: 88.12 kB / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.1145, allocations: 7.906 kB / 483.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.1145, allocations: 13.72 kB / 483.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1146, allocations: 318.8 kB / 483.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.396e-05/0.1147, allocations: 20 kB / 483.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-05/0.1148, allocations: 25.7 kB / 483.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.131e-05/0.1149, allocations: 32.72 kB / 483.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1149, allocations: 0 / 483.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001301/0.115, allocations: 57.59 kB / 483.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.115, allocations: 11.98 kB / 483.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1151, allocations: 0 / 483.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1151, allocations: 0 / 483.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.1152, allocations: 8.031 kB / 483.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1152, allocations: 0 / 483.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.803e-05/0.1152, allocations: 7.984 kB / 483.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.1152, allocations: 0 / 483.9 MB, free: 1.43 MB / 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 9.075e-05/0.1153, allocations: 117.8 kB / 484.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.1154, allocations: 8.078 kB / 484.1 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.1154, allocations: 7.516 kB / 484.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1154, allocations: 3.938 kB / 484.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1154, allocations: 4 kB / 484.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1154, allocations: 3.984 kB / 484.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.1156, allocations: 165.6 kB / 484.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1156, allocations: 0 / 484.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.1157, allocations: 7.984 kB / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1157, allocations: 0 / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1157, allocations: 0 / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1157, allocations: 0 / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1157, allocations: 0 / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.1159, allocations: 159.4 kB / 484.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.1159, allocations: 77.11 kB / 484.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.1159, allocations: 0 / 484.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.968e-05/0.116, allocations: 15.98 kB / 484.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.1161, allocations: 3.984 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.1161, allocations: 4 kB / 484.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.295e-05/0.1161, allocations: 95.52 kB / 484.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1161, allocations: 4.031 kB / 484.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002181/0.1164, allocations: 8 kB / 484.6 MB, free: 0.6641 MB / 350.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.416e-05/0.1165, allocations: 91.25 kB / 484.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1166, allocations: 23.98 kB / 484.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1166, allocations: 0 / 484.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.886e-05/0.1167, allocations: 15.98 kB / 484.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.1169, allocations: 7.938 kB / 484.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002997/0.1172, allocations: 166 kB / 484.9 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.1175, allocations: 0.6809 MB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.065e-05/0.1175, allocations: 7.438 kB / 485.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1176, allocations: 0 / 485.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Templates: time 0.001903/0.1195, allocations: 0.6664 MB / 486.3 MB, free: 14.94 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