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.0009822/0.0009824, allocations: 95.42 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009861/0.0009861, allocations: 205.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.2 MB / 245.9 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.2353/0.2353, allocations: 45.91 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003122, allocations: 4 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1427, allocations: 63.46 MB / 481.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001559/0.1443, allocations: 1.17 MB / 482.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.145, allocations: 423.5 kB / 483 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.472e-05/0.1451, allocations: 0 / 483 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.462e-05/0.1451, allocations: 0 / 483 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-05/0.1451, allocations: 15.88 kB / 483 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.1453, allocations: 19.91 kB / 483 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.561e-05/0.1454, allocations: 15.97 kB / 483 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.938e-05/0.1455, allocations: 4 kB / 483 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.1456, allocations: 23.91 kB / 483 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.268e-05/0.1457, allocations: 19.92 kB / 483.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1457, allocations: 4 kB / 483.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.1458, allocations: 4 kB / 483.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.1458, allocations: 4 kB / 483.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.1458, allocations: 29.7 kB / 483.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.457e-05/0.1459, allocations: 23.94 kB / 483.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1459, allocations: 0 / 483.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1459, allocations: 0 / 483.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.1459, allocations: 0 / 483.1 MB, free: 3.664 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.0005247/0.1465, allocations: 347.5 kB / 483.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.1465, allocations: 12.03 kB / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.1466, allocations: 11.98 kB / 483.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.1468, allocations: 178.8 kB / 483.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1468, allocations: 7.938 kB / 483.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-06/0.1468, allocations: 0 / 483.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.147, allocations: 63.39 kB / 483.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.147, allocations: 0 / 483.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.147, allocations: 4 kB / 483.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.147, allocations: 0 / 483.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.584e-05/0.1471, allocations: 19.98 kB / 483.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.1476, allocations: 272.9 kB / 484 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.905e-05/0.1477, allocations: 30.52 kB / 484 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.1477, allocations: 4.062 kB / 484.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.1478, allocations: 30.56 kB / 484.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1478, allocations: 0 / 484.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002604/0.148, allocations: 69.67 kB / 484.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.1481, allocations: 85.05 kB / 484.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.87e-05/0.1482, allocations: 109.8 kB / 484.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1482, allocations: 25.7 kB / 484.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.1483, allocations: 92.12 kB / 484.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.1483, allocations: 3.906 kB / 484.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.1483, allocations: 4.125 kB / 484.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1484, allocations: 318.8 kB / 484.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.727e-05/0.1485, allocations: 19.98 kB / 484.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-05/0.1486, allocations: 25.7 kB / 484.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.538e-05/0.1486, allocations: 8 kB / 484.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1486, allocations: 4.031 kB / 484.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001287/0.1488, allocations: 73.52 kB / 484.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.1488, allocations: 7.938 kB / 484.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1488, allocations: 4 kB / 484.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.1488, allocations: 0 / 484.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.841e-05/0.1489, allocations: 4 kB / 484.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1489, allocations: 0 / 484.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.437e-05/0.149, allocations: 19.98 kB / 484.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.149, allocations: 0 / 484.9 MB, free: 1.613 MB / 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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.877e-05/0.1491, allocations: 113.8 kB / 485.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.1491, allocations: 0 / 485.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.1492, allocations: 11.52 kB / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1492, allocations: 8.078 kB / 485.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1492, allocations: 0 / 485.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1492, allocations: 3.984 kB / 485.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.1494, allocations: 165.6 kB / 485.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1494, allocations: 0 / 485.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.1494, allocations: 4 kB / 485.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1494, allocations: 4 kB / 485.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1494, allocations: 0 / 485.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1494, allocations: 0 / 485.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1494, allocations: 0 / 485.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.1496, allocations: 167.3 kB / 485.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.1497, allocations: 77.11 kB / 485.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.1497, allocations: 4 kB / 485.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-05/0.1498, allocations: 11.98 kB / 485.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1498, allocations: 11.98 kB / 485.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.1499, allocations: 0 / 485.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.1499, allocations: 83.27 kB / 485.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1499, allocations: 4.031 kB / 485.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.1501, allocations: 12 kB / 485.6 MB, free: 0.8516 MB / 350.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 (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 0.0001251/0.1503, allocations: 91.78 kB / 485.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.1504, allocations: 27.98 kB / 485.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1504, allocations: 0 / 485.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.368e-05/0.1505, allocations: 23.92 kB / 485.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.1506, allocations: 7.953 kB / 485.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.151, allocations: 136.5 kB / 485.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.1512, allocations: 0.6848 MB / 486.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.843e-05/0.1513, allocations: 0 / 486.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.1513, allocations: 11.5 kB / 486.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1513, allocations: 3.938 kB / 486.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of Templates: time 0.002694/0.154, allocations: 480.2 kB / 487.1 MB, free: 15.34 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 -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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches