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.001242/0.001243, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 75.88 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09718, allocations: 62.44 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002519/0.09973, allocations: 1.463 MB / 482.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000726/0.1005, allocations: 486.7 kB / 483.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.1005, allocations: 4 kB / 483.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.437e-05/0.1006, allocations: 0 / 483.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.748e-05/0.1006, allocations: 7.875 kB / 483.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.1008, allocations: 27.95 kB / 483.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.925e-05/0.1009, allocations: 39.86 kB / 483.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.875e-05/0.101, allocations: 4 kB / 483.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.999e-05/0.1011, allocations: 19.92 kB / 483.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.695e-05/0.1012, allocations: 23.91 kB / 483.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.1012, allocations: 0 / 483.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.697e-05/0.1012, allocations: 8 kB / 483.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.1013, allocations: 11.92 kB / 483.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.1013, allocations: 11.94 kB / 483.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.428e-05/0.1014, allocations: 43.88 kB / 483.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1014, allocations: 0 / 483.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1014, allocations: 7.938 kB / 483.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1014, allocations: 0 / 483.6 MB, free: 2.359 MB / 350.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.0003725/0.1018, allocations: 343.4 kB / 483.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.1018, allocations: 8.031 kB / 483.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.102, allocations: 16.83 kB / 484 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.1022, allocations: 188.2 kB / 484.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.1022, allocations: 384 / 484.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.1022, allocations: 384 / 484.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.1023, allocations: 63.7 kB / 484.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1023, allocations: 0 / 484.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1024, allocations: 4 kB / 484.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1024, allocations: 3.938 kB / 484.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.121e-05/0.1025, allocations: 19.92 kB / 484.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1028, allocations: 260.9 kB / 484.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.304e-05/0.1029, allocations: 34.56 kB / 484.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.607e-05/0.103, allocations: 20.84 kB / 484.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.103, allocations: 0 / 484.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.103, allocations: 38.56 kB / 484.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.314e-06/0.103, allocations: 0 / 484.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002234/0.1032, allocations: 65.61 kB / 484.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.1033, allocations: 77.11 kB / 484.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.567e-05/0.1034, allocations: 109.8 kB / 484.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1034, allocations: 25.7 kB / 484.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.1035, allocations: 88.14 kB / 484.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.1035, allocations: 7.906 kB / 484.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.1035, allocations: 21.83 kB / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1036, allocations: 314.8 kB / 485.3 MB, free: 468 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.1037, allocations: 11.98 kB / 485.3 MB, free: 456 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.913e-05/0.1037, allocations: 21.72 kB / 485.3 MB, free: 428 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.07e-05/0.1038, allocations: 32.72 kB / 485.3 MB, free: 392 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.1038, allocations: 0 / 485.3 MB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00013/0.104, allocations: 73.69 kB / 485.4 MB, free: 312 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.104, allocations: 4 kB / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.104, allocations: 0 / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.104, allocations: 0 / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.114e-05/0.1041, allocations: 7.984 kB / 485.4 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.1041, allocations: 4 kB / 485.4 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.184e-05/0.1041, allocations: 8 kB / 485.4 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.1042, allocations: 0 / 485.4 MB, free: 288 kB / 350.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 7.499e-05/0.1042, allocations: 129.7 kB / 485.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.1043, allocations: 0 / 485.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.274e-05/0.1043, allocations: 7.531 kB / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1043, allocations: 0 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1043, allocations: 384 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1043, allocations: 0 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.1045, allocations: 165.6 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1045, allocations: 4 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-05/0.1045, allocations: 3.938 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1045, allocations: 0 / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.1046, allocations: 7.984 kB / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1046, allocations: 7.938 kB / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1046, allocations: 0 / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.1047, allocations: 147.4 kB / 485.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.1048, allocations: 81.09 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.1048, allocations: 8 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.1049, allocations: 4 kB / 486 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.1049, allocations: 12.02 kB / 486 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.1049, allocations: 3.938 kB / 486 MB, free: 15.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.244e-05/0.105, allocations: 91.27 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.105, allocations: 0 / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000207/0.1052, allocations: 4 kB / 486.1 MB, free: 15.52 MB / 366.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 8.739e-05/0.1053, allocations: 91.25 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.1055, allocations: 27.98 kB / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1055, allocations: 8 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.463e-05/0.1055, allocations: 11.98 kB / 486.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1057, allocations: 7.938 kB / 486.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.106, allocations: 134.5 kB / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1062, allocations: 0.6768 MB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.946e-05/0.1062, allocations: 7.984 kB / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.502e-05/0.1063, allocations: 11.5 kB / 487.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1063, allocations: 0 / 487.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of Templates: time 0.002399/0.1087, allocations: 0.5975 MB / 487.7 MB, free: 13.9 MB / 366.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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches