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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008932/0.0008932, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005507/0.005507, allocations: 164.1 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9004/0.9004, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2612/0.2612, allocations: 32.8 MB / 294.2 MB, free: 1.211 MB / 266.7 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 440.8 MB, free: 3.773 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.755e-05, allocations: 2.281 kB / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001976/0.002004, allocations: 1.469 MB / 442.3 MB, free: 2.289 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006166/0.00262, allocations: 454.7 kB / 442.7 MB, free: 1.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.497e-05/0.002675, allocations: 11.94 kB / 442.7 MB, free: 1.828 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.637e-05/0.002702, allocations: 0 / 442.7 MB, free: 1.828 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.193e-05/0.002744, allocations: 3.938 kB / 442.7 MB, free: 1.824 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.003002, allocations: 23.95 kB / 442.8 MB, free: 1.801 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.003129, allocations: 43.8 kB / 442.8 MB, free: 1.758 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.627e-05/0.003225, allocations: 4 kB / 442.8 MB, free: 1.754 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.003358, allocations: 39.83 kB / 442.9 MB, free: 1.715 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.71e-05/0.003405, allocations: 11.98 kB / 442.9 MB, free: 1.703 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.003421, allocations: 4 kB / 442.9 MB, free: 1.699 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.738e-05/0.003458, allocations: 4 kB / 442.9 MB, free: 1.695 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.254e-05/0.003471, allocations: 11.94 kB / 442.9 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.003489, allocations: 4 kB / 442.9 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.003599, allocations: 47.81 kB / 442.9 MB, free: 1.633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.003601, allocations: 0 / 442.9 MB, free: 1.633 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.003602, allocations: 0 / 442.9 MB, free: 1.633 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.003606, allocations: 0 / 442.9 MB, free: 1.633 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.0003384/0.003944, allocations: 278.2 kB / 443.2 MB, free: 1.332 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.003978, allocations: 8.031 kB / 443.2 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.004123, allocations: 8.938 kB / 443.2 MB, free: 1.316 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.004286, allocations: 125.7 kB / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.004295, allocations: 4.375 kB / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.004304, allocations: 384 / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.004438, allocations: 85.66 kB / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.004444, allocations: 4.125 kB / 443.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.004455, allocations: 4.375 kB / 443.4 MB, free: 1.055 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.004461, allocations: 3.938 kB / 443.5 MB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.513e-05/0.004516, allocations: 19.98 kB / 443.5 MB, free: 1.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002734/0.004789, allocations: 212.5 kB / 443.7 MB, free: 0.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.267e-05/0.004852, allocations: 34.58 kB / 443.7 MB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.00488, allocations: 12.91 kB / 443.7 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.004893, allocations: 0 / 443.7 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.004917, allocations: 42.5 kB / 443.8 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.011e-06/0.004918, allocations: 0 / 443.8 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001774/0.005095, allocations: 65.56 kB / 443.8 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.005134, allocations: 77.11 kB / 443.9 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.308e-05/0.005197, allocations: 118 kB / 444 MB, free: 404 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.005208, allocations: 25.7 kB / 444 MB, free: 372 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.922e-05/0.005248, allocations: 88.14 kB / 444.1 MB, free: 280 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.005267, allocations: 11.88 kB / 444.1 MB, free: 268 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.005298, allocations: 17.72 kB / 444.2 MB, free: 244 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.2097/0.215, allocations: 313.5 kB / 444.5 MB, free: 46.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.144e-05/0.2151, allocations: 11.84 kB / 444.5 MB, free: 46.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.779e-05/0.2151, allocations: 49.48 kB / 444.5 MB, free: 46.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.109e-05/0.2152, allocations: 28.41 kB / 444.6 MB, free: 46.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2152, allocations: 0 / 444.6 MB, free: 46.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.385e-05/0.2153, allocations: 59.98 kB / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.2153, allocations: 8.75 kB / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2153, allocations: 0 / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2153, allocations: 2.906 kB / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.569e-05/0.2154, allocations: 6.531 kB / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2154, allocations: 3.75 kB / 444.6 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.284e-05/0.2154, allocations: 15.53 kB / 444.7 MB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.2154, allocations: 2.938 kB / 444.7 MB, free: 46.31 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 5.236e-05/0.2155, allocations: 116.1 kB / 444.8 MB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.2155, allocations: 2.75 kB / 444.8 MB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.2155, allocations: 9.844 kB / 444.8 MB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2155, allocations: 2.75 kB / 444.8 MB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.2155, allocations: 3.938 kB / 444.8 MB, free: 46.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2155, allocations: 3.422 kB / 444.8 MB, free: 46.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.667e-05/0.2156, allocations: 109.5 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2156, allocations: 0 / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.312e-05/0.2156, allocations: 5 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2156, allocations: 2.875 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.2156, allocations: 0.8125 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.2156, allocations: 2.188 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2156, allocations: 3.375 kB / 444.9 MB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.803e-05/0.2157, allocations: 152.8 kB / 445.1 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.903e-06/0.2157, allocations: 9.344 kB / 445.1 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.2157, allocations: 0 / 445.1 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.732e-05/0.2158, allocations: 9.438 kB / 445.1 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.2158, allocations: 7.188 kB / 445.1 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/0.2158, allocations: 6.594 kB / 445.1 MB, free: 45.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.279e-05/0.2158, allocations: 90.52 kB / 445.2 MB, free: 45.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2158, allocations: 0 / 445.2 MB, free: 45.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001471/0.216, allocations: 8.594 kB / 445.2 MB, free: 45.86 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 6.663e-05/0.216, allocations: 92.78 kB / 445.3 MB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.2161, allocations: 28.52 kB / 445.3 MB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.2161, allocations: 0 / 445.3 MB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.314e-05/0.2162, allocations: 16.59 kB / 445.3 MB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2163, allocations: 4.781 kB / 445.3 MB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002258/0.2165, allocations: 149.6 kB / 445.5 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.106e-05/0.2166, allocations: 69.48 kB / 445.5 MB, free: 45.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.473e-05/0.2166, allocations: 15.09 kB / 445.6 MB, free: 45.57 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2166, allocations: 3.281 kB / 445.6 MB, free: 45.57 MB / 410.7 MB Notification: Performance of Templates: time 0.001355/0.218, allocations: 0.6789 MB / 446.2 MB, free: 45.56 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.441848946735263]