Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 104.8 kB / 16.27 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 188.1 kB / 17.19 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.1 MB, free: 12.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2389/0.2389, allocations: 43.52 MB / 313.9 MB, free: 0.5117 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001485, allocations: 69.92 kB / 382.8 MB, free: 56.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08987, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00219/0.09211, allocations: 1.432 MB / 442 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00055/0.09268, allocations: 446.7 kB / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.849e-05/0.09273, allocations: 4 kB / 442.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.408e-05/0.09276, allocations: 3.938 kB / 442.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.09282, allocations: 11.92 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.09301, allocations: 19.98 kB / 442.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.574e-05/0.09309, allocations: 35.8 kB / 442.6 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.09321, allocations: 12.25 kB / 442.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.316e-05/0.09331, allocations: 15.98 kB / 442.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.137e-05/0.09338, allocations: 15.92 kB / 442.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.0934, allocations: 4 kB / 442.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.22e-05/0.09342, allocations: 0 / 442.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.197e-05/0.09345, allocations: 19.92 kB / 442.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.09349, allocations: 11.94 kB / 442.6 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.299e-05/0.09357, allocations: 39.81 kB / 442.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09358, allocations: 0 / 442.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09359, allocations: 0 / 442.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.0936, allocations: 3.938 kB / 442.7 MB, free: 4.727 MB / 318.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.000415/0.09402, allocations: 343.4 kB / 443 MB, free: 4.344 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.09407, allocations: 11.89 kB / 443 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.749e-05/0.0941, allocations: 34.75 kB / 443.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.039e-05/0.09414, allocations: 4.938 kB / 443.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.242e-05/0.09424, allocations: 176.2 kB / 443.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.09425, allocations: 8.312 kB / 443.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.09427, allocations: 384 / 443.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/0.09441, allocations: 59.53 kB / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.09443, allocations: 0 / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.09444, allocations: 0 / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.09445, allocations: 0 / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.126e-05/0.09454, allocations: 27.97 kB / 443.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002853/0.09483, allocations: 260.9 kB / 443.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.086e-05/0.09491, allocations: 34.5 kB / 443.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.09496, allocations: 16.92 kB / 443.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.09498, allocations: 4 kB / 443.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.095, allocations: 34.55 kB / 443.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.09501, allocations: 0 / 443.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002004/0.09521, allocations: 61.53 kB / 443.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.09524, allocations: 77.11 kB / 443.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.903e-05/0.0953, allocations: 117.8 kB / 443.9 MB, free: 3.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.09532, allocations: 33.62 kB / 444 MB, free: 3.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.674e-05/0.09535, allocations: 92.27 kB / 444 MB, free: 3.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.09537, allocations: 0 / 444 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.09541, allocations: 13.72 kB / 444.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.117e-05/0.09545, allocations: 322.8 kB / 444.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.434e-05/0.0955, allocations: 16 kB / 444.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.219e-05/0.09555, allocations: 25.7 kB / 444.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.796e-05/0.09562, allocations: 28.88 kB / 444.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.09563, allocations: 4 kB / 444.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001058/0.09574, allocations: 65.52 kB / 444.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.09576, allocations: 4 kB / 444.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.09577, allocations: 0 / 444.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.09578, allocations: 0 / 444.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.319e-05/0.09585, allocations: 4 kB / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.09586, allocations: 0 / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.396e-05/0.09592, allocations: 7.984 kB / 444.5 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.09594, allocations: 8 kB / 444.5 MB, free: 2.617 MB / 318.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 4.846e-05/0.09599, allocations: 117.7 kB / 444.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.514e-05/0.09602, allocations: 4 kB / 444.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.182e-05/0.09604, allocations: 11.66 kB / 444.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.09605, allocations: 7.922 kB / 444.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.09606, allocations: 4 kB / 444.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.09607, allocations: 0 / 444.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.09617, allocations: 161.6 kB / 444.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.09618, allocations: 0 / 444.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.642e-05/0.09622, allocations: 8 kB / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.09623, allocations: 0 / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.09624, allocations: 0 / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.09625, allocations: 0 / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.09625, allocations: 0 / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.09637, allocations: 163.3 kB / 445 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.0964, allocations: 81.05 kB / 445.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.09642, allocations: 4.031 kB / 445.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.09651, allocations: 11.98 kB / 445.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.09655, allocations: 3.984 kB / 445.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.09658, allocations: 4 kB / 445.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.434e-05/0.09661, allocations: 87.22 kB / 445.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09661, allocations: 0 / 445.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.09683, allocations: 8 kB / 445.2 MB, free: 1.859 MB / 318.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.0002698/0.09711, allocations: 0.685 MB / 445.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001377/0.09725, allocations: 35.97 kB / 445.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.09727, allocations: 0 / 445.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.09e-05/0.09731, allocations: 8 kB / 445.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.09752, allocations: 5.5 kB / 445.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000359/0.09789, allocations: 160.3 kB / 446.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.09801, allocations: 0.6807 MB / 446.8 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.64e-05/0.09805, allocations: 0 / 446.8 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.09809, allocations: 15.44 kB / 446.8 MB, free: 184 kB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.0981, allocations: 0 / 446.8 MB, free: 184 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.1141, allocations: 1.467 MB / 448.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/7.907, allocations: 4.875 kB / 448.3 MB, free: 14.71 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches