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.001304/0.001304, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1999/0.1999, allocations: 46.1 MB / 344.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 75.5 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002743/0.1104, allocations: 1.456 MB / 481.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.1112, allocations: 478.8 kB / 482 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.059e-05/0.1113, allocations: 0 / 482 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.434e-05/0.1114, allocations: 7.938 kB / 482.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.566e-05/0.1114, allocations: 3.938 kB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.1117, allocations: 31.89 kB / 482.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.106e-05/0.1118, allocations: 35.86 kB / 482.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.441e-05/0.1119, allocations: 15.98 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.112, allocations: 19.92 kB / 482.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.663e-05/0.112, allocations: 19.92 kB / 482.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.1121, allocations: 0 / 482.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.036e-05/0.1121, allocations: 8 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.643e-05/0.1121, allocations: 11.92 kB / 482.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.314e-05/0.1122, allocations: 11.94 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1123, allocations: 39.88 kB / 482.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1123, allocations: 0 / 482.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1123, allocations: 4 kB / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.1123, allocations: 0 / 482.3 MB, free: 3.039 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.0004024/0.1127, allocations: 347.7 kB / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1127, allocations: 8.031 kB / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.219e-05/0.1128, allocations: 46.69 kB / 482.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.1129, allocations: 20.77 kB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.1131, allocations: 176.2 kB / 482.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.1131, allocations: 384 / 482.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.1131, allocations: 8.359 kB / 482.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.1133, allocations: 67.52 kB / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1133, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1133, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1133, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.556e-05/0.1134, allocations: 23.92 kB / 482.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003195/0.1137, allocations: 268.8 kB / 483.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.167e-05/0.1138, allocations: 30.58 kB / 483.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.015e-05/0.1139, allocations: 12.91 kB / 483.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1139, allocations: 4 kB / 483.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.1139, allocations: 30.56 kB / 483.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1139, allocations: 0 / 483.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002219/0.1141, allocations: 69.61 kB / 483.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.1142, allocations: 77.11 kB / 483.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.124e-05/0.1143, allocations: 109.8 kB / 483.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1143, allocations: 29.7 kB / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.1143, allocations: 88.12 kB / 483.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.1143, allocations: 11.89 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.1144, allocations: 13.72 kB / 483.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.1145, allocations: 322.9 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.835e-05/0.1145, allocations: 15.98 kB / 484 MB, free: 1.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.825e-05/0.1146, allocations: 25.7 kB / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.468e-05/0.1147, allocations: 28.78 kB / 484 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1147, allocations: 0 / 484 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000118/0.1148, allocations: 57.97 kB / 484.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.1148, allocations: 8.031 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1148, allocations: 0 / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1148, allocations: 3.984 kB / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.796e-05/0.1149, allocations: 7.938 kB / 484.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1149, allocations: 0 / 484.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.596e-05/0.115, allocations: 11.98 kB / 484.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.115, allocations: 0 / 484.1 MB, free: 0.9023 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 7.558e-05/0.1151, allocations: 117.8 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.1151, allocations: 0 / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.1151, allocations: 15.53 kB / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1151, allocations: 0 / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1151, allocations: 0 / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1152, allocations: 3.938 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.1153, allocations: 161.6 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1153, allocations: 4 kB / 484.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/0.1154, allocations: 4.125 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1154, allocations: 3.938 kB / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.1154, allocations: 11.98 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1154, allocations: 0 / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1154, allocations: 4 kB / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.1155, allocations: 155.4 kB / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.1156, allocations: 77.11 kB / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.1156, allocations: 4 kB / 484.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.002e-05/0.1157, allocations: 7.984 kB / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.1157, allocations: 7.984 kB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.1157, allocations: 4.031 kB / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.097e-05/0.1158, allocations: 91.22 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1158, allocations: 0 / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.116, allocations: 4 kB / 484.8 MB, free: 148 kB / 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.0003655/0.1164, allocations: 0.685 MB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001362/0.1165, allocations: 31.97 kB / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1165, allocations: 0 / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.308e-05/0.1166, allocations: 11.94 kB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.1168, allocations: 8.281 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.1178, allocations: 1.264 MB / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.1181, allocations: 0.6807 MB / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.1181, allocations: 3.984 kB / 487.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.1182, allocations: 19.38 kB / 487.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1182, allocations: 0 / 487.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3596/0.4778, allocations: 1.494 MB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.3, allocations: 7.969 kB / 489 MB, free: 11.85 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