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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 93.83 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3432/0.3432, allocations: 44.12 MB / 386.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3781, allocations: 60.79 MB / 0.5064 GB, free: 38.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003006/0.3812, allocations: 1.502 MB / 0.5078 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007314/0.3819, allocations: 413.5 kB / 0.5082 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.14e-05/0.382, allocations: 0 / 0.5082 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.198e-05/0.382, allocations: 7.938 kB / 0.5082 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.916e-05/0.3821, allocations: 3.938 kB / 0.5082 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.3823, allocations: 17.94 kB / 0.5083 GB, free: 37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.34e-05/0.3824, allocations: 34.89 kB / 0.5083 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3825, allocations: 2.531 kB / 0.5083 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.89e-05/0.3826, allocations: 22.78 kB / 0.5083 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.3827, allocations: 16.64 kB / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.3827, allocations: 0 / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.199e-05/0.3828, allocations: 6.875 kB / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.3828, allocations: 3.234 kB / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.092e-05/0.3828, allocations: 11.44 kB / 0.5084 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.81e-05/0.3829, allocations: 29.69 kB / 0.5084 GB, free: 36.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3829, allocations: 2.719 kB / 0.5084 GB, free: 36.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3829, allocations: 0 / 0.5084 GB, free: 36.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.3829, allocations: 0 / 0.5084 GB, free: 36.94 MB / 378.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.0005607/0.3835, allocations: 352.8 kB / 0.5087 GB, free: 36.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.3836, allocations: 8.469 kB / 0.5087 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.3836, allocations: 11.75 kB / 0.5087 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3838, allocations: 167.1 kB / 0.5089 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.3838, allocations: 384 / 0.5089 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.3838, allocations: 3.156 kB / 0.5089 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.384, allocations: 62.83 kB / 0.509 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.384, allocations: 0 / 0.509 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.384, allocations: 2.844 kB / 0.509 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.384, allocations: 0 / 0.509 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.325e-05/0.3841, allocations: 28.53 kB / 0.509 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.3845, allocations: 260.7 kB / 0.5092 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.865e-05/0.3846, allocations: 34.58 kB / 0.5093 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.561e-05/0.3847, allocations: 17.97 kB / 0.5093 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.3847, allocations: 7.984 kB / 0.5093 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.3847, allocations: 33.44 kB / 0.5093 GB, free: 35.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.103e-06/0.3847, allocations: 0 / 0.5093 GB, free: 35.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002833/0.385, allocations: 64.48 kB / 0.5094 GB, free: 35.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.3851, allocations: 77.11 kB / 0.5095 GB, free: 35.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.052e-05/0.3852, allocations: 115.3 kB / 0.5096 GB, free: 35.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.3852, allocations: 25.7 kB / 0.5096 GB, free: 35.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.699e-05/0.3853, allocations: 91.11 kB / 0.5097 GB, free: 35.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.3853, allocations: 7.891 kB / 0.5097 GB, free: 35.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.3853, allocations: 21.95 kB / 0.5097 GB, free: 35.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.3854, allocations: 310.8 kB / 0.51 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.743e-05/0.3855, allocations: 14.3 kB / 0.51 GB, free: 35.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/0.3855, allocations: 27.7 kB / 0.5101 GB, free: 35.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.641e-05/0.3856, allocations: 31.14 kB / 0.5101 GB, free: 35.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3856, allocations: 0 / 0.5101 GB, free: 35.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001119/0.3857, allocations: 55.55 kB / 0.5101 GB, free: 35.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3858, allocations: 5.188 kB / 0.5101 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3858, allocations: 7.938 kB / 0.5102 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3858, allocations: 0 / 0.5102 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.576e-05/0.3859, allocations: 6.531 kB / 0.5102 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3859, allocations: 2.938 kB / 0.5102 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.562e-05/0.386, allocations: 12.11 kB / 0.5102 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.386, allocations: 4 kB / 0.5102 GB, free: 35.13 MB / 378.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 (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 7.721e-05/0.386, allocations: 116.1 kB / 0.5103 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.3861, allocations: 2.875 kB / 0.5103 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.3861, allocations: 11.12 kB / 0.5103 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3861, allocations: 0 / 0.5103 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3861, allocations: 2.906 kB / 0.5103 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3861, allocations: 0 / 0.5103 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.3863, allocations: 165.8 kB / 0.5105 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3863, allocations: 3.938 kB / 0.5105 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.775e-05/0.3864, allocations: 10.05 kB / 0.5105 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.3864, allocations: 3.938 kB / 0.5105 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3864, allocations: 0 / 0.5105 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3864, allocations: 2.875 kB / 0.5105 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3864, allocations: 0 / 0.5105 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003349/0.3867, allocations: 0.7139 MB / 0.5112 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.3868, allocations: 83.92 kB / 0.5113 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.3868, allocations: 0 / 0.5113 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.3869, allocations: 9.281 kB / 0.5113 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.3869, allocations: 9.953 kB / 0.5113 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.3869, allocations: 0 / 0.5113 GB, free: 33.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.663e-05/0.387, allocations: 92.47 kB / 0.5114 GB, free: 33.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.387, allocations: 0 / 0.5114 GB, free: 33.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003293/0.3873, allocations: 5.844 kB / 0.5114 GB, free: 33.88 MB / 378.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) * 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.0001331/0.3875, allocations: 102 kB / 0.5115 GB, free: 33.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.3877, allocations: 31.44 kB / 0.5115 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3877, allocations: 0 / 0.5115 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.519e-05/0.3877, allocations: 12.75 kB / 0.5115 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.388, allocations: 3.234 kB / 0.5115 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000414/0.3884, allocations: 239.8 kB / 0.5117 GB, free: 33.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.3886, allocations: 0.6843 MB / 0.5124 GB, free: 32.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.322e-05/0.3886, allocations: 240 / 0.5124 GB, free: 32.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.3887, allocations: 10.34 kB / 0.5124 GB, free: 32.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3887, allocations: 0 / 0.5124 GB, free: 32.83 MB / 378.7 MB Notification: Performance of Templates: time 0.002772/0.3914, allocations: 0.5138 MB / 0.5129 GB, free: 32.77 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches