Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.000945/0.000945, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009665/0.0009665, allocations: 167.9 kB / 24.99 MB, free: 8.742 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 1.004/1.004, allocations: 177.1 MB / 205.3 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2551/0.2551, allocations: 34.26 MB / 296 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 378 MB, free: 2.973 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.058e-05/3.235e-05, allocations: 6.25 kB / 378 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003096/0.003128, allocations: 1.497 MB / 379.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009155/0.004043, allocations: 466.7 kB / 380 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.446e-05/0.004108, allocations: 0 / 380 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.004137, allocations: 3.938 kB / 380 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.391e-05/0.004191, allocations: 19.84 kB / 380 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.004429, allocations: 23.92 kB / 380 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000129/0.004558, allocations: 39.8 kB / 380 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.00466, allocations: 7.984 kB / 380.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.004805, allocations: 23.97 kB / 380.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.862e-05/0.004873, allocations: 19.92 kB / 380.1 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.004891, allocations: 0 / 380.1 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.742e-05/0.004938, allocations: 12 kB / 380.1 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.571e-05/0.004954, allocations: 7.984 kB / 380.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.004983, allocations: 15.92 kB / 380.1 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.005126, allocations: 27.91 kB / 380.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.005129, allocations: 0 / 380.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.00513, allocations: 0 / 380.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.341e-06/0.005136, allocations: 0 / 380.2 MB, free: 0.7969 MB / 346.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.0004666/0.005602, allocations: 376.5 kB / 380.5 MB, free: 404 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.00565, allocations: 8.031 kB / 380.5 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.005836, allocations: 8.938 kB / 380.5 MB, free: 388 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.006035, allocations: 140.4 kB / 380.7 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.006048, allocations: 4.375 kB / 380.7 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.006061, allocations: 384 / 380.7 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.006254, allocations: 100 kB / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.006262, allocations: 192 / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.006275, allocations: 384 / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.006286, allocations: 7.938 kB / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.088e-05/0.006327, allocations: 7.984 kB / 380.8 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003843/0.006712, allocations: 255.7 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.671e-05/0.006788, allocations: 39.09 kB / 381.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.536e-05/0.006814, allocations: 15.69 kB / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.006827, allocations: 0 / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.006859, allocations: 37.33 kB / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.006861, allocations: 0 / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001951/0.007056, allocations: 53.58 kB / 381.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.007105, allocations: 77.11 kB / 381.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.007213, allocations: 169.9 kB / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.007232, allocations: 25.7 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.167e-05/0.007293, allocations: 135 kB / 381.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.007314, allocations: 11.94 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.007359, allocations: 23.38 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.007503, allocations: 492.1 kB / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.591e-05/0.007529, allocations: 7.984 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.626e-05/0.007575, allocations: 49.08 kB / 382.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.34e-05/0.007618, allocations: 15.62 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.007621, allocations: 0 / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.54e-05/0.007716, allocations: 45.69 kB / 382.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.007736, allocations: 11.94 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.007741, allocations: 0 / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.007757, allocations: 4.031 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.026e-05/0.007837, allocations: 7.984 kB / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.007843, allocations: 0 / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.671e-05/0.007879, allocations: 4 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.007886, allocations: 0 / 382.2 MB, free: 14.46 MB / 362.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 9.996e-05/0.007986, allocations: 160.6 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.008017, allocations: 7.891 kB / 382.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.00805, allocations: 11.61 kB / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.008053, allocations: 0 / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.008059, allocations: 4 kB / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.008064, allocations: 7.938 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.008211, allocations: 116.6 kB / 382.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.008215, allocations: 4 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.612e-05/0.008251, allocations: 0 / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.008255, allocations: 0 / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.008267, allocations: 3.938 kB / 382.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.008269, allocations: 4 kB / 382.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.008271, allocations: 3.938 kB / 382.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.008444, allocations: 187.9 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.188e-05/0.008456, allocations: 3.953 kB / 382.8 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.008484, allocations: 7.969 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.074e-05/0.008565, allocations: 7.984 kB / 382.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.008637, allocations: 11.98 kB / 382.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.008643, allocations: 0 / 382.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.898e-05/0.008712, allocations: 135.1 kB / 382.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008712, allocations: 0 / 382.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002533/0.008965, allocations: 8 kB / 382.9 MB, free: 13.73 MB / 362.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.0001545/0.009119, allocations: 91.39 kB / 383 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.009263, allocations: 23.66 kB / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.009265, allocations: 4 kB / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.168e-05/0.009307, allocations: 15.69 kB / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.009578, allocations: 4 kB / 383.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006859/0.01026, allocations: 142 kB / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.674e-05/0.01031, allocations: 59.34 kB / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.194e-05/0.01034, allocations: 0 / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.01039, allocations: 12.5 kB / 383.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.01039, allocations: 4.062 kB / 383.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of Templates: time 0.003195/0.01358, allocations: 0.6479 MB / 383.9 MB, free: 12.67 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.072307631140575]