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.001136/0.001137, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001338, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2759/0.2759, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 75.88 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4125, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002887/0.4154, allocations: 1.471 MB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009957/0.4164, allocations: 485.4 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.4165, allocations: 1.594 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.282e-05/0.4165, allocations: 0 / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-05/0.4166, allocations: 13.47 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.4169, allocations: 32.95 kB / 0.5329 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.417, allocations: 37.8 kB / 0.533 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.4171, allocations: 8.109 kB / 0.533 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.4173, allocations: 21.61 kB / 0.533 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.214e-05/0.4174, allocations: 17.42 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.4174, allocations: 2.75 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.726e-05/0.4174, allocations: 9.484 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.4175, allocations: 7.938 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.4175, allocations: 20 kB / 0.533 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.4176, allocations: 42.88 kB / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4177, allocations: 0 / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4177, allocations: 0 / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.4177, allocations: 0 / 0.5331 GB, free: 11.94 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.0005404/0.4182, allocations: 345.1 kB / 0.5334 GB, free: 11.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4183, allocations: 9.625 kB / 0.5334 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.4185, allocations: 17.08 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.4187, allocations: 178.2 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.4188, allocations: 5.75 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.4188, allocations: 1.75 kB / 0.5336 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.4189, allocations: 65.27 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.419, allocations: 5.312 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.419, allocations: 3.984 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.419, allocations: 1.375 kB / 0.5337 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.226e-05/0.4191, allocations: 22.98 kB / 0.5337 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004058/0.4195, allocations: 262.6 kB / 0.534 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.802e-05/0.4196, allocations: 32.19 kB / 0.534 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.884e-05/0.4196, allocations: 10.36 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.4197, allocations: 5.375 kB / 0.534 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.4197, allocations: 39.88 kB / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.4197, allocations: 0 / 0.534 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002567/0.42, allocations: 58.3 kB / 0.5341 GB, free: 10.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.4201, allocations: 78.48 kB / 0.5342 GB, free: 10.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.4202, allocations: 116.8 kB / 0.5343 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.4202, allocations: 27.08 kB / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.4202, allocations: 89.62 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.4203, allocations: 13.22 kB / 0.5344 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.566e-05/0.4204, allocations: 16.47 kB / 0.5344 GB, free: 10.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4205, allocations: 316.2 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.691e-05/0.4206, allocations: 10.88 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.696e-05/0.4206, allocations: 29.89 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/0.4207, allocations: 29.16 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4207, allocations: 4.031 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001247/0.4208, allocations: 56.84 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4209, allocations: 9.484 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.4209, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.4209, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.89e-05/0.421, allocations: 4.125 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.421, allocations: 0 / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.998e-05/0.4211, allocations: 17.42 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.4211, allocations: 1.375 kB / 0.5349 GB, free: 10.06 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 8.432e-05/0.4212, allocations: 120.5 kB / 0.535 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.4212, allocations: 1.375 kB / 0.535 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.689e-05/0.4212, allocations: 8.906 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4212, allocations: 1.375 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4212, allocations: 3.938 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4213, allocations: 3.984 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.4214, allocations: 164.5 kB / 0.5352 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4214, allocations: 3.984 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/0.4215, allocations: 2.75 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4215, allocations: 5.375 kB / 0.5352 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.4215, allocations: 4 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4215, allocations: 1.375 kB / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4215, allocations: 0 / 0.5352 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.4217, allocations: 155.9 kB / 0.5353 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-05/0.4218, allocations: 82.8 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.4218, allocations: 1.375 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.4219, allocations: 13.45 kB / 0.5354 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.4219, allocations: 12.12 kB / 0.5354 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.422, allocations: 3.938 kB / 0.5354 GB, free: 9.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.455e-05/0.422, allocations: 82.66 kB / 0.5355 GB, free: 9.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.422, allocations: 0 / 0.5355 GB, free: 9.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.4222, allocations: 9.656 kB / 0.5355 GB, free: 9.355 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.0001137/0.4224, allocations: 99.69 kB / 0.5356 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.4225, allocations: 28.92 kB / 0.5356 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4225, allocations: 0 / 0.5356 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.48e-05/0.4226, allocations: 19.8 kB / 0.5357 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.4228, allocations: 8.078 kB / 0.5357 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003094/0.4232, allocations: 126.2 kB / 0.5358 GB, free: 9.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.4234, allocations: 0.6794 MB / 0.5365 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.396e-05/0.4235, allocations: 5.406 kB / 0.5365 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.4235, allocations: 9.5 kB / 0.5365 GB, free: 8.398 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4235, allocations: 0 / 0.5365 GB, free: 8.398 MB / 398.1 MB Notification: Performance of Templates: time 0.002958/0.4265, allocations: 0.6128 MB / 0.5371 GB, free: 8.082 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