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.001314/0.001314, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001441/0.001441, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 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.469/1.469, allocations: 230.6 MB / 258.2 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] 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.237/0.237, allocations: 46.95 MB / 361.6 MB, free: 4.035 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+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 0.00193/0.00193, allocations: 67.91 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3756, allocations: 66.04 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002823/0.3784, allocations: 1.457 MB / 0.5632 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.3793, allocations: 447 kB / 0.5637 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.013e-05/0.3794, allocations: 0 / 0.5637 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.3794, allocations: 3.938 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.941e-05/0.3795, allocations: 7.938 kB / 0.5637 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002536/0.3797, allocations: 35.89 kB / 0.5637 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.3798, allocations: 43.8 kB / 0.5638 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.3799, allocations: 0 / 0.5638 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.3801, allocations: 19.98 kB / 0.5638 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.821e-05/0.3801, allocations: 23.91 kB / 0.5638 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.3802, allocations: 4 kB / 0.5638 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.157e-05/0.3802, allocations: 4 kB / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.3802, allocations: 15.92 kB / 0.5638 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.607e-05/0.3803, allocations: 7.938 kB / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.3804, allocations: 39.53 kB / 0.5639 GB, free: 2.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3804, allocations: 4 kB / 0.5639 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3804, allocations: 0 / 0.5639 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.3804, allocations: 0 / 0.5639 GB, free: 2.051 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.0004991/0.3809, allocations: 280.9 kB / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3809, allocations: 8.031 kB / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.3811, allocations: 12.92 kB / 0.5642 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.3813, allocations: 122.4 kB / 0.5643 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.3813, allocations: 4.359 kB / 0.5643 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.3813, allocations: 4.375 kB / 0.5643 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.3815, allocations: 89.42 kB / 0.5644 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3815, allocations: 0 / 0.5644 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.3816, allocations: 0 / 0.5644 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3816, allocations: 0 / 0.5644 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.928e-05/0.3817, allocations: 27.91 kB / 0.5644 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003649/0.382, allocations: 204.6 kB / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.968e-05/0.3821, allocations: 34.5 kB / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.3822, allocations: 16.92 kB / 0.5646 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.3822, allocations: 4 kB / 0.5646 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.3822, allocations: 30.56 kB / 0.5647 GB, free: 1.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3822, allocations: 0 / 0.5647 GB, free: 1.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002703/0.3825, allocations: 69.61 kB / 0.5647 GB, free: 1.035 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.3825, allocations: 81.05 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.722e-05/0.3826, allocations: 109.8 kB / 0.5649 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.3827, allocations: 25.7 kB / 0.5649 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.3827, allocations: 88.12 kB / 0.565 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.3827, allocations: 15.89 kB / 0.565 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.3828, allocations: 17.84 kB / 0.5651 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3829, allocations: 318.8 kB / 0.5654 GB, free: 348 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.721e-05/0.383, allocations: 8 kB / 0.5654 GB, free: 340 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.077e-05/0.383, allocations: 51.41 kB / 0.5654 GB, free: 276 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.962e-05/0.3831, allocations: 28.78 kB / 0.5654 GB, free: 244 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3831, allocations: 0 / 0.5654 GB, free: 244 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001337/0.3833, allocations: 65.61 kB / 0.5655 GB, free: 172 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3833, allocations: 4 kB / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3833, allocations: 0 / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.3833, allocations: 4.547 kB / 0.5655 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.246e-05/0.3834, allocations: 4 kB / 0.5655 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3834, allocations: 0 / 0.5655 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.201e-05/0.3834, allocations: 15.94 kB / 0.5655 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.3834, allocations: 7.922 kB / 0.5655 GB, free: 136 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 0.000116/0.3836, allocations: 121.8 kB / 0.5657 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.3836, allocations: 0 / 0.5657 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.3836, allocations: 7.625 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3836, allocations: 3.984 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3836, allocations: 4 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3836, allocations: 0 / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.3838, allocations: 109.2 kB / 0.5658 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3838, allocations: 7.938 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.706e-05/0.3838, allocations: 0 / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3838, allocations: 0 / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.3838, allocations: 8 kB / 0.5658 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3838, allocations: 0 / 0.5658 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3838, allocations: 0 / 0.5658 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.384, allocations: 147.5 kB / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.253e-05/0.384, allocations: 11.97 kB / 0.5659 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.384, allocations: 0 / 0.5659 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.3841, allocations: 11.92 kB / 0.566 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.3842, allocations: 11.98 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.3842, allocations: 0 / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.834e-05/0.3842, allocations: 91.27 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3842, allocations: 3.938 kB / 0.5661 GB, free: 15.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.3845, allocations: 8 kB / 0.5661 GB, free: 15.54 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 9.204e-05/0.3846, allocations: 91.25 kB / 0.5662 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.3847, allocations: 27.98 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3847, allocations: 0 / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.712e-05/0.3848, allocations: 15.98 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.385, allocations: 6.75 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.3853, allocations: 160.6 kB / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.976e-05/0.3854, allocations: 63.34 kB / 0.5664 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.3854, allocations: 11.78 kB / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3854, allocations: 0 / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Templates: time 0.002232/0.3877, allocations: 0.6841 MB / 0.5671 GB, free: 14.43 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.366031547979219]