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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 46.11 MB / 343.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 76.38 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1293, allocations: 62.45 MB / 479.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003218/0.1326, allocations: 1.521 MB / 480.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.1336, allocations: 482.8 kB / 481.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.365e-05/0.1337, allocations: 0 / 481.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.1338, allocations: 0 / 481.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.267e-05/0.1339, allocations: 7.938 kB / 481.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.1341, allocations: 23.98 kB / 481.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.971e-05/0.1342, allocations: 39.86 kB / 481.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.263e-05/0.1343, allocations: 7.984 kB / 481.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.1345, allocations: 19.92 kB / 481.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.642e-05/0.1346, allocations: 15.92 kB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.1346, allocations: 4 kB / 481.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.603e-05/0.1346, allocations: 4 kB / 481.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.747e-05/0.1347, allocations: 11.91 kB / 481.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.212e-05/0.1347, allocations: 11.94 kB / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.1348, allocations: 35.89 kB / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1348, allocations: 4 kB / 481.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1348, allocations: 0 / 481.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1349, allocations: 0 / 481.6 MB, free: 3.457 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.0005167/0.1354, allocations: 347.7 kB / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.1354, allocations: 8.875 kB / 481.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.1355, allocations: 34.75 kB / 481.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.1357, allocations: 16.83 kB / 482 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.1359, allocations: 188.1 kB / 482.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1359, allocations: 4.375 kB / 482.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.1359, allocations: 384 / 482.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.1361, allocations: 67.52 kB / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1361, allocations: 0 / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.1362, allocations: 0 / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.1362, allocations: 0 / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.854e-05/0.1363, allocations: 19.98 kB / 482.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004/0.1367, allocations: 272.8 kB / 482.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.1368, allocations: 26.58 kB / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.338e-05/0.1369, allocations: 20.84 kB / 482.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.1369, allocations: 0 / 482.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.1369, allocations: 34.56 kB / 482.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.1369, allocations: 4 kB / 482.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002579/0.1372, allocations: 65.61 kB / 482.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.1373, allocations: 77.11 kB / 482.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.449e-05/0.1374, allocations: 113.8 kB / 482.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.1374, allocations: 29.7 kB / 482.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.1375, allocations: 84.14 kB / 482.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.1375, allocations: 11.89 kB / 483 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.1375, allocations: 17.84 kB / 483 MB, free: 1.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1377, allocations: 318.8 kB / 483.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.303e-05/0.1377, allocations: 11.98 kB / 483.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.442e-05/0.1378, allocations: 25.7 kB / 483.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.671e-05/0.1379, allocations: 32.78 kB / 483.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1379, allocations: 0 / 483.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001454/0.138, allocations: 61.62 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1381, allocations: 4 kB / 483.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1381, allocations: 0 / 483.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1381, allocations: 144 / 483.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-05/0.1382, allocations: 7.984 kB / 483.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1382, allocations: 0 / 483.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.237e-05/0.1383, allocations: 15.97 kB / 483.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.1383, allocations: 0 / 483.4 MB, free: 1.324 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 (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 9.062e-05/0.1384, allocations: 117.8 kB / 483.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.1384, allocations: 4 kB / 483.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.372e-05/0.1384, allocations: 3.531 kB / 483.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1384, allocations: 4 kB / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1384, allocations: 0 / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1385, allocations: 0 / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.1386, allocations: 165.6 kB / 483.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1386, allocations: 0 / 483.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.315e-05/0.1387, allocations: 11.92 kB / 483.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1387, allocations: 0 / 483.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.1387, allocations: 0 / 483.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1387, allocations: 11.94 kB / 483.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1387, allocations: 0 / 483.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.1389, allocations: 155.4 kB / 483.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.139, allocations: 77.48 kB / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.139, allocations: 4 kB / 484 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.515e-05/0.1391, allocations: 11.98 kB / 484 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.1392, allocations: 12.02 kB / 484 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.1392, allocations: 3.938 kB / 484 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.826e-05/0.1392, allocations: 87.28 kB / 484.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1392, allocations: 0 / 484.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002215/0.1395, allocations: 4 kB / 484.1 MB, free: 0.5703 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 (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.0004693/0.1399, allocations: 0.6889 MB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001544/0.1401, allocations: 31.97 kB / 484.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1401, allocations: 0 / 484.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.985e-05/0.1402, allocations: 11.94 kB / 484.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.1404, allocations: 0 / 484.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.1417, allocations: 1.275 MB / 486.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.142, allocations: 0.677 MB / 486.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.848e-05/0.142, allocations: 7.984 kB / 486.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.1421, allocations: 11.44 kB / 486.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1421, allocations: 0 / 486.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01184/0.1539, allocations: 1.308 MB / 488.1 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/0.1542, allocations: 182.8 kB / 488.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/1.992, allocations: 3.938 kB / 488.3 MB, free: 12.23 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > 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