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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009828/0.0009828, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9608/0.9608, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2796/0.2796, allocations: 34.24 MB / 294.8 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.324e-06/2.324e-06, allocations: 0 / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.547e-05, allocations: 2.281 kB / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002287/0.002313, allocations: 1.463 MB / 443.6 MB, free: 124 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2205/0.2228, allocations: 450.1 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.972e-05/0.2229, allocations: 6.234 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.749e-05/0.2229, allocations: 5.859 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.223, allocations: 6.281 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.2233, allocations: 30.52 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.2234, allocations: 37.42 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.2236, allocations: 4.156 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.2237, allocations: 32.61 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.129e-05/0.2238, allocations: 12.14 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.2238, allocations: 4.344 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.037e-05/0.2239, allocations: 10.83 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.2239, allocations: 7.266 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.332e-05/0.2239, allocations: 6.688 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.224, allocations: 44.06 kB / 444.3 MB, free: 43.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.224, allocations: 4.688 kB / 444.3 MB, free: 43.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.224, allocations: 0 / 444.3 MB, free: 43.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2241, allocations: 0 / 444.3 MB, free: 43.24 MB / 410.7 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.0004128/0.2245, allocations: 278 kB / 444.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.2245, allocations: 8.719 kB / 444.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.807e-05/0.2245, allocations: 37.31 kB / 444.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2247, allocations: 12.94 kB / 444.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.2249, allocations: 127.6 kB / 444.7 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.2249, allocations: 3.656 kB / 444.7 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.2249, allocations: 4.312 kB / 444.7 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.2251, allocations: 82.95 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.2251, allocations: 0.6875 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.2251, allocations: 7.5 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2251, allocations: 0 / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.487e-05/0.2252, allocations: 24.88 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.2255, allocations: 225.7 kB / 445.1 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.405e-05/0.2256, allocations: 29.45 kB / 445.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.116e-05/0.2256, allocations: 20.14 kB / 445.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.2257, allocations: 0 / 445.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.2257, allocations: 30.56 kB / 445.1 MB, free: 42.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2257, allocations: 2.656 kB / 445.1 MB, free: 42.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002208/0.2259, allocations: 73.41 kB / 445.2 MB, free: 42.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.2259, allocations: 79.98 kB / 445.3 MB, free: 42.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.226, allocations: 111.4 kB / 445.4 MB, free: 42.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.226, allocations: 25.7 kB / 445.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.226, allocations: 86.89 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2261, allocations: 7.188 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.2261, allocations: 16.59 kB / 445.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.818e-05/0.2261, allocations: 320.3 kB / 445.8 MB, free: 41.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.711e-05/0.2262, allocations: 7.969 kB / 445.8 MB, free: 41.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.554e-05/0.2262, allocations: 54.19 kB / 445.9 MB, free: 41.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.869e-05/0.2262, allocations: 33.56 kB / 445.9 MB, free: 41.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2262, allocations: 0 / 445.9 MB, free: 41.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.012e-05/0.2263, allocations: 63.08 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2263, allocations: 8.328 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.2263, allocations: 0 / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2263, allocations: 0 / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.025e-05/0.2264, allocations: 2.688 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2264, allocations: 2.75 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.805e-05/0.2264, allocations: 12.31 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.2264, allocations: 2.688 kB / 446 MB, free: 41.64 MB / 410.7 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.832e-05/0.2265, allocations: 108.6 kB / 446.1 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.2265, allocations: 18.02 kB / 446.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.2265, allocations: 11.53 kB / 446.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2265, allocations: 0 / 446.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2265, allocations: 0 / 446.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2265, allocations: 0 / 446.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.723e-05/0.2266, allocations: 131.8 kB / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2266, allocations: 9.281 kB / 446.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.857e-05/0.2266, allocations: 6.172 kB / 446.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2266, allocations: 0 / 446.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.2267, allocations: 0 / 446.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.2267, allocations: 2.812 kB / 446.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2267, allocations: 4 kB / 446.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.074e-05/0.2267, allocations: 145.8 kB / 446.4 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.205e-06/0.2268, allocations: 10.61 kB / 446.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.2268, allocations: 2.812 kB / 446.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.899e-05/0.2268, allocations: 6.922 kB / 446.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.2269, allocations: 9.359 kB / 446.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.2269, allocations: 5.719 kB / 446.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.401e-05/0.2269, allocations: 89 kB / 446.6 MB, free: 41.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2269, allocations: 0 / 446.6 MB, free: 41.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001428/0.227, allocations: 20.03 kB / 446.6 MB, free: 41.12 MB / 410.7 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.0002192/0.2272, allocations: 0.6717 MB / 447.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.2274, allocations: 25.8 kB / 447.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2274, allocations: 0 / 447.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.744e-05/0.2274, allocations: 15.44 kB / 447.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.2276, allocations: 10.06 kB / 447.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008137/0.2284, allocations: 1.261 MB / 448.6 MB, free: 39.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.824e-05/0.2284, allocations: 66.95 kB / 448.6 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.816e-05/0.2285, allocations: 2.938 kB / 448.6 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.2285, allocations: 15.75 kB / 448.7 MB, free: 39.23 MB / 410.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2285, allocations: 0 / 448.7 MB, free: 39.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.246, allocations: 2.223 MB / 450.9 MB, free: 38.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.095/7.341, allocations: 19.59 kB / 450.9 MB, free: 38.34 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598325 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.585457316599786]