Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 118.1 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 189.2 kB / 21.44 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 249.8 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 44.92 MB / 349.6 MB, free: 1.742 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 71.98 kB / 491.8 MB, free: 30.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1416, allocations: 64.26 MB / 0.543 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002982/0.1446, allocations: 1.444 MB / 0.5444 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007885/0.1454, allocations: 427 kB / 0.5448 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.31e-05/0.1454, allocations: 0 / 0.5448 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.1455, allocations: 3.938 kB / 0.5448 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.903e-05/0.1455, allocations: 3.938 kB / 0.5448 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1457, allocations: 19.97 kB / 0.5448 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.1458, allocations: 31.91 kB / 0.5449 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.484e-05/0.1459, allocations: 4 kB / 0.5449 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.146, allocations: 23.86 kB / 0.5449 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.1461, allocations: 15.92 kB / 0.5449 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.1461, allocations: 8 kB / 0.5449 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.488e-06/0.1461, allocations: 0 / 0.5449 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.1461, allocations: 11.98 kB / 0.5449 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.328e-05/0.1462, allocations: 11.94 kB / 0.5449 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.1463, allocations: 36.11 kB / 0.545 GB, free: 2.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1463, allocations: 0 / 0.545 GB, free: 2.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1463, allocations: 3.938 kB / 0.545 GB, free: 2.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1463, allocations: 0 / 0.545 GB, free: 2.078 MB / 398.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.000536/0.1468, allocations: 343.4 kB / 0.5453 GB, free: 1.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1469, allocations: 12.03 kB / 0.5453 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.955e-05/0.1469, allocations: 38.75 kB / 0.5453 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.1469, allocations: 4.891 kB / 0.5454 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.1471, allocations: 180.3 kB / 0.5455 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1471, allocations: 4.312 kB / 0.5455 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.1471, allocations: 384 / 0.5455 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.1473, allocations: 63.53 kB / 0.5456 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1473, allocations: 0 / 0.5456 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1473, allocations: 7.984 kB / 0.5456 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1473, allocations: 0 / 0.5456 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.951e-05/0.1474, allocations: 19.98 kB / 0.5456 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.1478, allocations: 260.9 kB / 0.5459 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.1479, allocations: 34.5 kB / 0.5459 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.592e-05/0.148, allocations: 12.92 kB / 0.5459 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.148, allocations: 7.984 kB / 0.5459 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.148, allocations: 34.56 kB / 0.546 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.148, allocations: 0 / 0.546 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002424/0.1483, allocations: 57.62 kB / 0.546 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.1483, allocations: 81.09 kB / 0.5461 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1485, allocations: 117.8 kB / 0.5462 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.1485, allocations: 29.83 kB / 0.5462 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.1486, allocations: 88.08 kB / 0.5463 GB, free: 500 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1486, allocations: 7.953 kB / 0.5463 GB, free: 492 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.1486, allocations: 13.72 kB / 0.5463 GB, free: 472 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1488, allocations: 322.8 kB / 0.5466 GB, free: 140 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.121e-05/0.1488, allocations: 12 kB / 0.5466 GB, free: 128 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.1489, allocations: 25.7 kB / 0.5467 GB, free: 96 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.849e-05/0.149, allocations: 32.95 kB / 0.5467 GB, free: 60 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.149, allocations: 0 / 0.5467 GB, free: 60 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001588/0.1491, allocations: 61.56 kB / 0.5468 GB, free: 15.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1491, allocations: 8 kB / 0.5468 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1491, allocations: 0 / 0.5468 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1492, allocations: 0 / 0.5468 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.076e-05/0.1492, allocations: 7.938 kB / 0.5468 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.1492, allocations: 0 / 0.5468 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.839e-05/0.1493, allocations: 11.98 kB / 0.5468 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1493, allocations: 0 / 0.5468 GB, free: 15.96 MB / 414.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.299e-05/0.1494, allocations: 117.8 kB / 0.5469 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.1494, allocations: 4 kB / 0.5469 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.1494, allocations: 11.52 kB / 0.5469 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1495, allocations: 0 / 0.5469 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1495, allocations: 0 / 0.5469 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1495, allocations: 0 / 0.5469 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.1497, allocations: 165.6 kB / 0.5471 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1497, allocations: 4 kB / 0.5471 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.1497, allocations: 4 kB / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1497, allocations: 0 / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.1497, allocations: 4 kB / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1497, allocations: 0 / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1497, allocations: 0 / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1499, allocations: 163.4 kB / 0.5472 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.1499, allocations: 81.14 kB / 0.5473 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.15, allocations: 0 / 0.5473 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.15, allocations: 7.984 kB / 0.5473 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.1501, allocations: 7.984 kB / 0.5473 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.1501, allocations: 0 / 0.5473 GB, free: 15.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.111e-05/0.1502, allocations: 91.58 kB / 0.5474 GB, free: 15.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1502, allocations: 0 / 0.5474 GB, free: 15.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.1504, allocations: 4 kB / 0.5474 GB, free: 15.21 MB / 414.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.0005522/0.1509, allocations: 0.6927 MB / 0.5481 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.1511, allocations: 27.98 kB / 0.5481 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.1511, allocations: 0 / 0.5481 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.44e-05/0.1511, allocations: 8.031 kB / 0.5481 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.1514, allocations: 14.73 kB / 0.5482 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004751/0.1518, allocations: 152.3 kB / 0.5483 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1522, allocations: 0.6805 MB / 0.549 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.358e-05/0.1522, allocations: 4 kB / 0.549 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.1523, allocations: 19.36 kB / 0.549 GB, free: 13.53 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1523, allocations: 0 / 0.549 GB, free: 13.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.1759, allocations: 1.514 MB / 0.5505 GB, free: 12.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/7.918, allocations: 3.938 kB / 0.5505 GB, free: 12.08 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.869383071083575]