Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 183.5 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008377/0.0008377, allocations: 86.61 kB / 267 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3709/0.3709, allocations: 43.46 MB / 358.6 MB, free: 51.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.168e-05, allocations: 4 kB / 425.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1264, allocations: 58.84 MB / 484.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.5014, allocations: 85.04 MB / 0.5559 GB, free: 18.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001796/0.5016, allocations: 59.06 kB / 0.5559 GB, free: 18.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002354/0.5039, allocations: 0.9413 MB / 0.5568 GB, free: 17.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.504, allocations: 4 kB / 0.5568 GB, free: 17.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.504, allocations: 0 / 0.5568 GB, free: 17.7 MB / 394.7 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.0002731/0.5043, allocations: 347 kB / 0.5572 GB, free: 17.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.5043, allocations: 12.03 kB / 0.5572 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.5043, allocations: 5.781 kB / 0.5572 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.209e-05/0.5044, allocations: 172.3 kB / 0.5573 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.5045, allocations: 0 / 0.5573 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.5045, allocations: 4 kB / 0.5573 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.5046, allocations: 51.89 kB / 0.5574 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.5046, allocations: 4 kB / 0.5574 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.5046, allocations: 6.812 kB / 0.5574 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5046, allocations: 1.375 kB / 0.5574 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.458e-05/0.5047, allocations: 13.41 kB / 0.5574 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003027/0.505, allocations: 259.9 kB / 0.5577 GB, free: 16.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.039e-05/0.505, allocations: 27.08 kB / 0.5577 GB, free: 16.72 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.5051, allocations: 15.61 kB / 0.5577 GB, free: 16.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.5051, allocations: 4 kB / 0.5577 GB, free: 16.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.5051, allocations: 34.56 kB / 0.5577 GB, free: 16.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.5051, allocations: 0 / 0.5577 GB, free: 16.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001298/0.5053, allocations: 40.31 kB / 0.5578 GB, free: 16.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.5053, allocations: 82.66 kB / 0.5579 GB, free: 16.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.876e-05/0.5054, allocations: 98.06 kB / 0.558 GB, free: 16.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.5054, allocations: 29.73 kB / 0.558 GB, free: 16.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.5054, allocations: 92.39 kB / 0.5581 GB, free: 16.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.5054, allocations: 5.734 kB / 0.5581 GB, free: 16.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.5054, allocations: 0 / 0.5581 GB, free: 16.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/0.5055, allocations: 319.4 kB / 0.5584 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.5055, allocations: 7.375 kB / 0.5584 GB, free: 15.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.316e-05/0.5055, allocations: 22.12 kB / 0.5584 GB, free: 15.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.152e-05/0.5056, allocations: 9.5 kB / 0.5584 GB, free: 15.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5056, allocations: 4.031 kB / 0.5584 GB, free: 15.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.638e-05/0.5056, allocations: 54.47 kB / 0.5585 GB, free: 15.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.5057, allocations: 8 kB / 0.5585 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.5057, allocations: 0 / 0.5585 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.5057, allocations: 2.438 kB / 0.5585 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.628e-05/0.5058, allocations: 5.453 kB / 0.5585 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.5058, allocations: 3.938 kB / 0.5585 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.468e-05/0.5058, allocations: 14.41 kB / 0.5585 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.5058, allocations: 4 kB / 0.5585 GB, free: 15.88 MB / 394.7 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 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.5059, allocations: 111.7 kB / 0.5586 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.5059, allocations: 4 kB / 0.5586 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.5059, allocations: 6.594 kB / 0.5586 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.506, allocations: 144 / 0.5586 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.506, allocations: 0 / 0.5586 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.506, allocations: 5.344 kB / 0.5586 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.5061, allocations: 166.4 kB / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.5061, allocations: 0 / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.629e-05/0.5061, allocations: 9.406 kB / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.5061, allocations: 0 / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.5062, allocations: 1.641 kB / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.5062, allocations: 0 / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.5062, allocations: 0 / 0.5588 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.942e-05/0.5063, allocations: 146.4 kB / 0.5589 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.73e-05/0.5063, allocations: 85.02 kB / 0.559 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.5063, allocations: 0 / 0.559 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.5064, allocations: 15.36 kB / 0.559 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.5064, allocations: 11.03 kB / 0.559 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.5064, allocations: 0 / 0.559 GB, free: 15.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.548e-05/0.5065, allocations: 90.77 kB / 0.5591 GB, free: 15.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5065, allocations: 0 / 0.5591 GB, free: 15.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002011/0.5067, allocations: 5.219 kB / 0.5591 GB, free: 15.2 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.997e-05/0.5068, allocations: 97.73 kB / 0.5592 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.351e-05/0.5069, allocations: 19.69 kB / 0.5593 GB, free: 15.08 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5069, allocations: 3.281 kB / 0.5593 GB, free: 15.08 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.23e-05/0.5069, allocations: 13.39 kB / 0.5593 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.507, allocations: 7.703 kB / 0.5593 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001659/0.5072, allocations: 64.61 kB / 0.5593 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.695e-05/0.5073, allocations: 0.6831 MB / 0.56 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.885e-05/0.5073, allocations: 4.062 kB / 0.56 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.5074, allocations: 12.52 kB / 0.56 GB, free: 14.27 MB / 394.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5074, allocations: 0 / 0.56 GB, free: 14.27 MB / 394.7 MB Notification: Performance of Templates: time 0.001958/0.5093, allocations: 487.3 kB / 0.5605 GB, free: 14 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches