Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.009855/0.009855, allocations: 106.8 kB / 21.98 MB, free: 5.223 MB / 14.72 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.001878/0.001878, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 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 1.43/1.43, allocations: 230.5 MB / 258.9 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2336/0.2336, allocations: 46.94 MB / 362.3 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 79.86 kB / 0.4982 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3512, allocations: 66.07 MB / 0.5627 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003017/0.3542, allocations: 1.48 MB / 0.5642 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000931/0.3551, allocations: 490.8 kB / 0.5646 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.3552, allocations: 0 / 0.5646 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.144e-05/0.3552, allocations: 3.938 kB / 0.5646 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-05/0.3553, allocations: 3.938 kB / 0.5646 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.3555, allocations: 31.91 kB / 0.5647 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.3556, allocations: 43.84 kB / 0.5647 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.698e-05/0.3557, allocations: 4 kB / 0.5647 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.3559, allocations: 23.92 kB / 0.5647 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.377e-05/0.3559, allocations: 23.91 kB / 0.5648 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.3559, allocations: 3.938 kB / 0.5648 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.545e-05/0.356, allocations: 8 kB / 0.5648 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.356, allocations: 7.984 kB / 0.5648 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.782e-05/0.356, allocations: 11.94 kB / 0.5648 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.3562, allocations: 35.55 kB / 0.5648 GB, free: 2.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3562, allocations: 8 kB / 0.5648 GB, free: 2.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3562, allocations: 0 / 0.5648 GB, free: 2.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.3562, allocations: 0 / 0.5648 GB, free: 2.074 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.0004893/0.3567, allocations: 280.8 kB / 0.5651 GB, free: 1.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3567, allocations: 12.03 kB / 0.5651 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.3569, allocations: 12.92 kB / 0.5651 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.3571, allocations: 122.4 kB / 0.5652 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.3571, allocations: 4.375 kB / 0.5652 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.3571, allocations: 4.375 kB / 0.5652 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.3573, allocations: 59.7 kB / 0.5653 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3573, allocations: 0 / 0.5653 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.3573, allocations: 0 / 0.5653 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3573, allocations: 0 / 0.5653 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.796e-05/0.3574, allocations: 19.98 kB / 0.5653 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004153/0.3578, allocations: 247.9 kB / 0.5656 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.836e-05/0.3579, allocations: 34.55 kB / 0.5656 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.851e-05/0.358, allocations: 16.92 kB / 0.5656 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.358, allocations: 0 / 0.5656 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.358, allocations: 30.56 kB / 0.5656 GB, free: 1.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.358, allocations: 4 kB / 0.5656 GB, free: 1.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002599/0.3583, allocations: 65.61 kB / 0.5657 GB, free: 1.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.3584, allocations: 81.11 kB / 0.5658 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.3585, allocations: 105.8 kB / 0.5659 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.3585, allocations: 29.7 kB / 0.5659 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.3586, allocations: 88.12 kB / 0.566 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.3586, allocations: 11.89 kB / 0.566 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.3586, allocations: 13.84 kB / 0.566 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3588, allocations: 322.8 kB / 0.5663 GB, free: 364 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.555e-05/0.3588, allocations: 8 kB / 0.5663 GB, free: 356 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.802e-05/0.3589, allocations: 25.7 kB / 0.5664 GB, free: 324 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.851e-05/0.359, allocations: 28.78 kB / 0.5664 GB, free: 292 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.359, allocations: 0 / 0.5664 GB, free: 292 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001557/0.3591, allocations: 65.61 kB / 0.5664 GB, free: 220 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3591, allocations: 8.031 kB / 0.5665 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3591, allocations: 0 / 0.5665 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3592, allocations: 4 kB / 0.5665 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.611e-05/0.3592, allocations: 0 / 0.5665 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.3592, allocations: 8.312 kB / 0.5665 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.793e-05/0.3593, allocations: 15.94 kB / 0.5665 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-06/0.3593, allocations: 0 / 0.5665 GB, free: 184 kB / 398.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.826e-05/0.3594, allocations: 118.7 kB / 0.5666 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.3594, allocations: 7.938 kB / 0.5666 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.828e-05/0.3594, allocations: 7.625 kB / 0.5666 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3594, allocations: 3.984 kB / 0.5666 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3594, allocations: 0 / 0.5666 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3595, allocations: 0 / 0.5666 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.3597, allocations: 140.7 kB / 0.5667 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3597, allocations: 0 / 0.5667 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.059e-05/0.3597, allocations: 4 kB / 0.5668 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3597, allocations: 3.938 kB / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.3597, allocations: 0 / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3597, allocations: 0 / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3597, allocations: 4 kB / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.3599, allocations: 151.4 kB / 0.5669 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.12e-05/0.3599, allocations: 8 kB / 0.5669 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3599, allocations: 0 / 0.5669 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.36, allocations: 7.984 kB / 0.5669 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.3601, allocations: 8.016 kB / 0.5669 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3601, allocations: 4 kB / 0.5669 GB, free: 15.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.801e-05/0.3601, allocations: 91.27 kB / 0.567 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3601, allocations: 0 / 0.567 GB, free: 15.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.3603, allocations: 8 kB / 0.567 GB, free: 15.55 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.0001103/0.3604, allocations: 87.25 kB / 0.5671 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001602/0.3606, allocations: 31.92 kB / 0.5671 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3606, allocations: 4 kB / 0.5671 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.897e-05/0.3607, allocations: 15.98 kB / 0.5672 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.3609, allocations: 7.938 kB / 0.5672 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.3612, allocations: 148.7 kB / 0.5673 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.3616, allocations: 0.6768 MB / 0.568 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.3616, allocations: 15.38 kB / 0.568 GB, free: 14.5 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3616, allocations: 0 / 0.568 GB, free: 14.5 MB / 414.1 MB Notification: Performance of Templates: time 0.0025/0.3641, allocations: 0.6731 MB / 0.5686 GB, free: 13.83 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.286304560024291]