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.0009886/0.0009886, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001071/0.001072, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2202/0.2202, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4135/0.4147, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00251/0.4173, allocations: 1.442 MB / 0.5203 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006442/0.418, allocations: 417.5 kB / 0.5207 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.418, allocations: 1.062 kB / 0.5207 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.418, allocations: 4.5 kB / 0.5207 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-05/0.4181, allocations: 5.766 kB / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.4183, allocations: 14.78 kB / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.322e-05/0.4184, allocations: 38.3 kB / 0.5208 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.4185, allocations: 12.86 kB / 0.5208 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.164e-05/0.4186, allocations: 17.7 kB / 0.5208 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.496e-05/0.4187, allocations: 17.19 kB / 0.5208 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.4187, allocations: 3.344 kB / 0.5208 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.15e-05/0.4187, allocations: 2.062 kB / 0.5208 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.4187, allocations: 6.516 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.05e-05/0.4188, allocations: 18.38 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.765e-05/0.4189, allocations: 33.45 kB / 0.5209 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4189, allocations: 4 kB / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4189, allocations: 0 / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.4189, allocations: 3.938 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.0004006/0.4193, allocations: 348 kB / 0.5212 GB, free: 1.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4194, allocations: 9.938 kB / 0.5212 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.4194, allocations: 11.75 kB / 0.5212 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.385e-05/0.4195, allocations: 165.9 kB / 0.5214 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.4195, allocations: 1.438 kB / 0.5214 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.4195, allocations: 1.562 kB / 0.5214 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.4197, allocations: 69.31 kB / 0.5214 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.4197, allocations: 0 / 0.5214 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.4197, allocations: 1.125 kB / 0.5215 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4197, allocations: 0 / 0.5215 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.646e-05/0.4198, allocations: 20.08 kB / 0.5215 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003492/0.4202, allocations: 269.4 kB / 0.5217 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.791e-05/0.4202, allocations: 30.42 kB / 0.5218 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.467e-05/0.4203, allocations: 12.77 kB / 0.5218 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.4203, allocations: 1.156 kB / 0.5218 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.4203, allocations: 32.31 kB / 0.5218 GB, free: 1.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.4204, allocations: 0 / 0.5218 GB, free: 1.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002248/0.4206, allocations: 78.45 kB / 0.5219 GB, free: 1.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.4206, allocations: 78.2 kB / 0.5219 GB, free: 1.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.452e-05/0.4207, allocations: 111.5 kB / 0.5221 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.4207, allocations: 30.8 kB / 0.5221 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.924e-05/0.4207, allocations: 82.78 kB / 0.5222 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.4208, allocations: 10.08 kB / 0.5222 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.4208, allocations: 14.55 kB / 0.5222 GB, free: 0.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.953e-05/0.4209, allocations: 325.7 kB / 0.5225 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.771e-05/0.4209, allocations: 8.625 kB / 0.5225 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.724e-05/0.421, allocations: 26.48 kB / 0.5225 GB, free: 500 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.346e-05/0.421, allocations: 27.61 kB / 0.5226 GB, free: 484 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4211, allocations: 7.938 kB / 0.5226 GB, free: 476 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001128/0.4212, allocations: 59.48 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.4212, allocations: 5.75 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.4212, allocations: 4.031 kB / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.4212, allocations: 0 / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.834e-05/0.4213, allocations: 5.828 kB / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.4213, allocations: 0 / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.4214, allocations: 16.22 kB / 0.5227 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.4214, allocations: 1.062 kB / 0.5227 GB, free: 424 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.029e-05/0.4214, allocations: 117.7 kB / 0.5228 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.4215, allocations: 7.172 kB / 0.5228 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.4215, allocations: 13.2 kB / 0.5228 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.4215, allocations: 4.5 kB / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.4215, allocations: 1.062 kB / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.4215, allocations: 0 / 0.5228 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.4217, allocations: 167.2 kB / 0.5229 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4217, allocations: 1.594 kB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.4217, allocations: 7.984 kB / 0.523 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4217, allocations: 0.5156 kB / 0.523 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.4217, allocations: 1.953 kB / 0.523 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4217, allocations: 0 / 0.523 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4217, allocations: 4 kB / 0.523 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001716/0.4219, allocations: 147.5 kB / 0.5231 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.422, allocations: 83.06 kB / 0.5232 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.422, allocations: 6.234 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.046e-05/0.4221, allocations: 7.734 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.4222, allocations: 6.812 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.4222, allocations: 4.781 kB / 0.5232 GB, free: 15.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.687e-05/0.4222, allocations: 92.09 kB / 0.5233 GB, free: 15.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4222, allocations: 1.406 kB / 0.5233 GB, free: 15.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002086/0.4224, allocations: 4.312 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 9.117e-05/0.4225, allocations: 96.77 kB / 0.5234 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001621/0.4227, allocations: 33.38 kB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4227, allocations: 1.281 kB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/0.4228, allocations: 14.06 kB / 0.5234 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.423, allocations: 13.25 kB / 0.5235 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.4233, allocations: 114.4 kB / 0.5236 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.4235, allocations: 0.6821 MB / 0.5242 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.2e-05/0.4236, allocations: 6.219 kB / 0.5242 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.4236, allocations: 9.688 kB / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4236, allocations: 64 / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of Templates: time 0.002966/0.4266, allocations: 0.6131 MB / 0.5248 GB, free: 14.72 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