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.001332/0.001332, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001998/0.00333, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008448/0.0008448, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009878/0.001833, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.109/1.109, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1259/1.235, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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.3175/0.3175, allocations: 32.79 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03202/0.3495, allocations: 12.54 MB / 289.3 MB, free: 8.684 MB / 282.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.854e-06/1.854e-06, allocations: 0 / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.456e-05/3.641e-05, allocations: 4.203 kB / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002444/0.002481, allocations: 1.543 MB / 292.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007678/0.003249, allocations: 481.5 kB / 292.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.507e-05/0.003324, allocations: 1.344 kB / 292.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.3e-05/0.003357, allocations: 3.938 kB / 292.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.503e-05/0.003392, allocations: 5.281 kB / 292.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.003549, allocations: 28.5 kB / 292.6 MB, free: 6.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.003666, allocations: 39.22 kB / 292.7 MB, free: 5.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.575e-05/0.003762, allocations: 7.062 kB / 292.7 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.003915, allocations: 39.12 kB / 292.7 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.45e-05/0.00398, allocations: 16.91 kB / 292.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.003998, allocations: 4.156 kB / 292.8 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.444e-05/0.004063, allocations: 4.219 kB / 292.8 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.00408, allocations: 8.062 kB / 292.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.175e-05/0.004101, allocations: 6.188 kB / 292.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.004222, allocations: 33.45 kB / 292.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.685e-05/0.004239, allocations: 0 / 292.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00424, allocations: 1.438 kB / 292.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.004255, allocations: 0 / 292.8 MB, free: 5.926 MB / 282.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.0004074/0.004662, allocations: 261.3 kB / 293.1 MB, free: 5.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.004695, allocations: 8.312 kB / 293.1 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.004846, allocations: 90.97 kB / 293.2 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.004984, allocations: 119.8 kB / 293.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.004993, allocations: 3.188 kB / 293.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-06/0.005, allocations: 384 / 293.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.005126, allocations: 99.48 kB / 293.4 MB, free: 5.328 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.005136, allocations: 192 / 293.4 MB, free: 5.328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.005143, allocations: 384 / 293.4 MB, free: 5.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.005149, allocations: 3.938 kB / 293.4 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.443e-05/0.005173, allocations: 8 kB / 293.4 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002219/0.005395, allocations: 152.6 kB / 293.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.919e-05/0.005445, allocations: 26.56 kB / 293.6 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.304e-05/0.005458, allocations: 6.859 kB / 293.6 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.005473, allocations: 5.938 kB / 293.6 MB, free: 5.125 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.005505, allocations: 36.59 kB / 293.6 MB, free: 5.082 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.005506, allocations: 0 / 293.6 MB, free: 5.082 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001057/0.005611, allocations: 37.64 kB / 293.6 MB, free: 5.047 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.005642, allocations: 51.53 kB / 293.7 MB, free: 4.984 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.57e-05/0.005707, allocations: 116.9 kB / 293.8 MB, free: 4.867 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.00573, allocations: 35.69 kB / 293.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.005765, allocations: 86.12 kB / 293.9 MB, free: 4.742 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.005782, allocations: 2 kB / 293.9 MB, free: 4.742 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-05/0.005807, allocations: 11.72 kB / 293.9 MB, free: 4.727 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.419e-05/0.005891, allocations: 321.4 kB / 294.3 MB, free: 4.406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.196e-06/0.005899, allocations: 6.75 kB / 294.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.102e-05/0.00593, allocations: 41.14 kB / 294.3 MB, free: 4.355 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.61e-05/0.005956, allocations: 17.03 kB / 294.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.005959, allocations: 3.938 kB / 294.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.569e-05/0.006005, allocations: 42.41 kB / 294.4 MB, free: 4.297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.006018, allocations: 5.219 kB / 294.4 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.006024, allocations: 1.281 kB / 294.4 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.666e-06/0.006033, allocations: 3.938 kB / 294.4 MB, free: 4.293 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.262e-05/0.006095, allocations: 6.688 kB / 294.4 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.006099, allocations: 1.688 kB / 294.4 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.45e-05/0.006124, allocations: 11.28 kB / 294.4 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.006128, allocations: 3.906 kB / 294.4 MB, free: 4.281 MB / 282.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.352e-05/0.006182, allocations: 105.8 kB / 294.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.006195, allocations: 1.375 kB / 294.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.394e-05/0.006219, allocations: 17.86 kB / 294.5 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.006222, allocations: 3.938 kB / 294.5 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.006224, allocations: 0 / 294.5 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.006226, allocations: 1.531 kB / 294.5 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.149e-05/0.006308, allocations: 69.45 kB / 294.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.006308, allocations: 0 / 294.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.616e-05/0.006325, allocations: 4.922 kB / 294.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-06/0.00633, allocations: 2.656 kB / 294.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.006333, allocations: 4 kB / 294.6 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-06/0.006337, allocations: 0 / 294.6 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.00634, allocations: 11.06 kB / 294.6 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.006341, allocations: 0 / 294.6 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.375e-05/0.006425, allocations: 133.7 kB / 294.7 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.006442, allocations: 4 kB / 294.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.431e-05/0.006476, allocations: 7.984 kB / 294.8 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.00651, allocations: 11.92 kB / 294.8 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.006512, allocations: 0 / 294.8 MB, free: 3.891 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.1e-05/0.006523, allocations: 8.859 kB / 294.8 MB, free: 3.879 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006523, allocations: 0 / 294.8 MB, free: 3.879 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00011/0.006633, allocations: 8 kB / 294.8 MB, free: 3.871 MB / 282.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 5.848e-05/0.006691, allocations: 84.44 kB / 294.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.573e-05/0.006747, allocations: 12.86 kB / 294.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.006752, allocations: 3.984 kB / 294.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.791e-05/0.00677, allocations: 12.8 kB / 294.9 MB, free: 3.746 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.819e-05/0.006868, allocations: 11.92 kB / 294.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006069/0.007475, allocations: 140.9 kB / 295 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.377e-05/0.007508, allocations: 63.41 kB / 295.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.035e-05/0.007529, allocations: 4.219 kB / 295.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.007575, allocations: 55.36 kB / 295.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of SimCode: time 7.02e-07/0.007576, allocations: 4 kB / 295.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of Templates: time 0.002241/0.009816, allocations: 0.6906 MB / 295.9 MB, free: 2.754 MB / 282.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.208732293918729]