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.001189/0.001189, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.4331, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003355/0.4365, allocations: 1.463 MB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000948/0.4375, allocations: 484.8 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.997e-05/0.4375, allocations: 1.125 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.4376, allocations: 7.922 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.296e-05/0.4376, allocations: 5.125 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.4379, allocations: 28.59 kB / 0.5329 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.438, allocations: 38.81 kB / 0.5329 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.4381, allocations: 16.19 kB / 0.533 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.4383, allocations: 22.08 kB / 0.533 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.4384, allocations: 20.12 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.4384, allocations: 3.188 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.544e-05/0.4384, allocations: 5.219 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.4385, allocations: 9.719 kB / 0.533 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.4385, allocations: 15.17 kB / 0.533 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.4386, allocations: 34.44 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4386, allocations: 2 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4386, allocations: 4 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.4387, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.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.000512/0.4392, allocations: 356.1 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.4392, allocations: 10.25 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.4394, allocations: 12.44 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.4396, allocations: 172.3 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.4397, allocations: 5.875 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.4397, allocations: 1.812 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.4399, allocations: 70.23 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.4399, allocations: 3.938 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.4399, allocations: 0 / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.4399, allocations: 5.578 kB / 0.5337 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.029e-05/0.44, allocations: 18.61 kB / 0.5337 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.4405, allocations: 267.2 kB / 0.534 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.4406, allocations: 36.12 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.573e-05/0.4406, allocations: 14.3 kB / 0.534 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.4407, allocations: 1.25 kB / 0.534 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.4407, allocations: 32.12 kB / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4407, allocations: 0 / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003044/0.441, allocations: 69.89 kB / 0.5341 GB, free: 10.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.4411, allocations: 78.33 kB / 0.5342 GB, free: 10.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.4412, allocations: 116.8 kB / 0.5343 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.4413, allocations: 31.08 kB / 0.5343 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/0.4413, allocations: 81.52 kB / 0.5344 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.4413, allocations: 13.27 kB / 0.5344 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.4414, allocations: 12.47 kB / 0.5344 GB, free: 10.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4415, allocations: 324.3 kB / 0.5347 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.549e-05/0.4416, allocations: 6.875 kB / 0.5347 GB, free: 10.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-05/0.4416, allocations: 27.33 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.988e-05/0.4417, allocations: 27.78 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4417, allocations: 0 / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001267/0.4419, allocations: 64.86 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4419, allocations: 5.5 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4419, allocations: 4.031 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.4419, allocations: 1.375 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.784e-05/0.442, allocations: 2.75 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.442, allocations: 0 / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.4421, allocations: 13.44 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-06/0.4421, allocations: 1.375 kB / 0.5349 GB, free: 10.05 MB / 398.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 0.000101/0.4422, allocations: 124.5 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.4422, allocations: 2.75 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.4422, allocations: 12.89 kB / 0.535 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.4423, allocations: 0 / 0.535 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4423, allocations: 0 / 0.535 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.4423, allocations: 5.312 kB / 0.535 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.4424, allocations: 167.1 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.4425, allocations: 0 / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.4425, allocations: 4.125 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4425, allocations: 0 / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.4425, allocations: 0 / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4425, allocations: 1.375 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4425, allocations: 3.938 kB / 0.5352 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.4427, allocations: 161.3 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.4427, allocations: 78.48 kB / 0.5354 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.4428, allocations: 0 / 0.5354 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.857e-05/0.4428, allocations: 9.484 kB / 0.5354 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.4429, allocations: 8.109 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.4429, allocations: 4.031 kB / 0.5354 GB, free: 9.438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.997e-05/0.443, allocations: 94.45 kB / 0.5355 GB, free: 9.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.443, allocations: 0 / 0.5355 GB, free: 9.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.4432, allocations: 6.875 kB / 0.5355 GB, free: 9.352 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 9.629e-05/0.4433, allocations: 94.39 kB / 0.5356 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001648/0.4435, allocations: 32.41 kB / 0.5356 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4435, allocations: 1.375 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.242e-05/0.4435, allocations: 20.23 kB / 0.5357 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.4437, allocations: 5.312 kB / 0.5357 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.444, allocations: 120.8 kB / 0.5358 GB, free: 9.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.4443, allocations: 0.6782 MB / 0.5365 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.168e-05/0.4443, allocations: 2.75 kB / 0.5365 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.4444, allocations: 16.8 kB / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4444, allocations: 0 / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of Templates: time 0.002863/0.4472, allocations: 0.5941 MB / 0.5371 GB, free: 8.09 MB / 398.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