Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009939/0.0009939, allocations: 118.4 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 183.8 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2808/0.2808, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 63.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.436, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002478/0.4385, allocations: 1.454 MB / 0.5203 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006555/0.4392, allocations: 417.1 kB / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.982e-05/0.4392, allocations: 1.156 kB / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.881e-05/0.4392, allocations: 4.641 kB / 0.5207 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.4393, allocations: 5.188 kB / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.4395, allocations: 14.95 kB / 0.5207 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.576e-05/0.4396, allocations: 30.44 kB / 0.5208 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.4397, allocations: 12.83 kB / 0.5208 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.864e-05/0.4398, allocations: 17.97 kB / 0.5208 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.937e-05/0.4399, allocations: 21.81 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.44, allocations: 6.312 kB / 0.5208 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.44, allocations: 2.781 kB / 0.5208 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.44, allocations: 6.828 kB / 0.5208 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.17e-05/0.4401, allocations: 13.5 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.4402, allocations: 32.53 kB / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4402, allocations: 0.7031 kB / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.4402, allocations: 0 / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.4402, allocations: 5.344 kB / 0.5209 GB, free: 2.211 MB / 382.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.0004352/0.4406, allocations: 352.5 kB / 0.5212 GB, free: 1.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4407, allocations: 8.75 kB / 0.5212 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.4407, allocations: 8.422 kB / 0.5212 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.767e-05/0.4408, allocations: 165.3 kB / 0.5214 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.4408, allocations: 2.188 kB / 0.5214 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.4409, allocations: 5.344 kB / 0.5214 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.4411, allocations: 61.64 kB / 0.5214 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.4411, allocations: 0 / 0.5214 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.4411, allocations: 0 / 0.5214 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.4411, allocations: 5.094 kB / 0.5214 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.4412, allocations: 20.25 kB / 0.5215 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004013/0.4416, allocations: 260.5 kB / 0.5217 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.93e-05/0.4417, allocations: 35.33 kB / 0.5218 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.981e-05/0.4418, allocations: 16.73 kB / 0.5218 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.4418, allocations: 4.609 kB / 0.5218 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.4418, allocations: 31.72 kB / 0.5218 GB, free: 1.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.293e-06/0.4418, allocations: 1.156 kB / 0.5218 GB, free: 1.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002619/0.4421, allocations: 62.12 kB / 0.5219 GB, free: 1.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.4422, allocations: 85.8 kB / 0.5219 GB, free: 1.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.387e-05/0.4422, allocations: 107.6 kB / 0.522 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.4423, allocations: 30.92 kB / 0.5221 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.4423, allocations: 87.38 kB / 0.5222 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.4423, allocations: 9.766 kB / 0.5222 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.4424, allocations: 18.34 kB / 0.5222 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.4424, allocations: 317.2 kB / 0.5225 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/0.4425, allocations: 13.47 kB / 0.5225 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.259e-05/0.4426, allocations: 25.2 kB / 0.5225 GB, free: 500 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.22e-05/0.4426, allocations: 37.16 kB / 0.5226 GB, free: 476 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4427, allocations: 0 / 0.5226 GB, free: 476 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001221/0.4428, allocations: 58.69 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4428, allocations: 7.688 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4428, allocations: 1.969 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4428, allocations: 0 / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.524e-05/0.4429, allocations: 4.156 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.4429, allocations: 1.609 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.443, allocations: 24.17 kB / 0.5227 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.443, allocations: 1.109 kB / 0.5227 GB, free: 420 kB / 382.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.443e-05/0.4431, allocations: 112.9 kB / 0.5228 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.4431, allocations: 10.52 kB / 0.5228 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.4431, allocations: 14 kB / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.4432, allocations: 0 / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4432, allocations: 1.188 kB / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4432, allocations: 0.5156 kB / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.4433, allocations: 163.5 kB / 0.5229 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4433, allocations: 4 kB / 0.5229 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.898e-05/0.4434, allocations: 4.781 kB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.4434, allocations: 1.125 kB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.4434, allocations: 0.6562 kB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4434, allocations: 1.375 kB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4434, allocations: 0 / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.4436, allocations: 155.4 kB / 0.5231 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.4436, allocations: 86.78 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.4437, allocations: 0.9688 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.78e-05/0.4438, allocations: 8.453 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/0.4438, allocations: 11.28 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.4438, allocations: 0.5625 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.048e-05/0.4439, allocations: 88.36 kB / 0.5233 GB, free: 15.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4439, allocations: 0 / 0.5233 GB, free: 15.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.4442, allocations: 9.938 kB / 0.5233 GB, free: 15.74 MB / 398.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 0.0001126/0.4443, allocations: 96.44 kB / 0.5234 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.4445, allocations: 29.83 kB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4445, allocations: 0 / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.912e-05/0.4445, allocations: 14.64 kB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.4448, allocations: 9.891 kB / 0.5234 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003451/0.4451, allocations: 121.4 kB / 0.5236 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.4454, allocations: 0.6876 MB / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.804e-05/0.4455, allocations: 1.906 kB / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.4455, allocations: 10.36 kB / 0.5242 GB, free: 14.8 MB / 398.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4455, allocations: 0 / 0.5242 GB, free: 14.8 MB / 398.1 MB Notification: Performance of Templates: time 0.003099/0.4486, allocations: 0.5892 MB / 0.5248 GB, free: 14.73 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches