Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004057/0.004062, allocations: 368.5 kB / 15.96 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.956/3.956, allocations: 388.9 MB / 405.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003629/0.003628, allocations: 237.1 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5703/0.5703, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006829/0.0006832, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1011, allocations: 54.88 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001602/0.1028, allocations: 1.132 MB / 0.6812 GB, free: 40.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007695/0.1036, allocations: 424.5 kB / 0.6816 GB, free: 40.09 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.337e-05/0.1036, allocations: 0 / 0.6816 GB, free: 40.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.1037, allocations: 3.938 kB / 0.6816 GB, free: 40.08 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.1037, allocations: 0 / 0.6816 GB, free: 40.08 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.1039, allocations: 15.92 kB / 0.6816 GB, free: 40.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.776e-05/0.104, allocations: 27.92 kB / 0.6817 GB, free: 40.04 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.203e-05/0.1041, allocations: 8 kB / 0.6817 GB, free: 40.03 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.489e-05/0.1042, allocations: 19.91 kB / 0.6817 GB, free: 40.01 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.737e-05/0.1042, allocations: 19.92 kB / 0.6817 GB, free: 39.99 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.1043, allocations: 0 / 0.6817 GB, free: 39.99 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.219e-05/0.1043, allocations: 0 / 0.6817 GB, free: 39.99 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.1043, allocations: 4 kB / 0.6817 GB, free: 39.99 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.1043, allocations: 29.7 kB / 0.6817 GB, free: 39.95 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.021e-05/0.1044, allocations: 19.95 kB / 0.6817 GB, free: 39.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1044, allocations: 0 / 0.6817 GB, free: 39.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1044, allocations: 0 / 0.6817 GB, free: 39.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1044, allocations: 3.938 kB / 0.6818 GB, free: 39.93 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.000439/0.1049, allocations: 359.3 kB / 0.6821 GB, free: 39.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1049, allocations: 11.97 kB / 0.6821 GB, free: 39.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.105, allocations: 0 / 0.6821 GB, free: 39.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.157e-05/0.1051, allocations: 171 kB / 0.6823 GB, free: 39.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1051, allocations: 0 / 0.6823 GB, free: 39.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.1051, allocations: 4 kB / 0.6823 GB, free: 39.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.1053, allocations: 67.39 kB / 0.6823 GB, free: 39.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1053, allocations: 0 / 0.6823 GB, free: 39.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.1054, allocations: 0 / 0.6823 GB, free: 39.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1054, allocations: 3.953 kB / 0.6823 GB, free: 39.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.1055, allocations: 27.92 kB / 0.6824 GB, free: 39.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004022/0.1059, allocations: 260.9 kB / 0.6826 GB, free: 38.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.1061, allocations: 38.5 kB / 0.6827 GB, free: 38.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.231e-05/0.1061, allocations: 20.91 kB / 0.6827 GB, free: 38.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.1062, allocations: 0 / 0.6827 GB, free: 38.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.1062, allocations: 38.52 kB / 0.6827 GB, free: 38.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.452e-06/0.1062, allocations: 0 / 0.6827 GB, free: 38.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003028/0.1065, allocations: 73.61 kB / 0.6828 GB, free: 38.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.1066, allocations: 77.11 kB / 0.6829 GB, free: 38.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.389e-05/0.1066, allocations: 109.8 kB / 0.683 GB, free: 38.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1067, allocations: 29.7 kB / 0.683 GB, free: 38.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.872e-05/0.1067, allocations: 88.27 kB / 0.6831 GB, free: 38.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.1067, allocations: 3.906 kB / 0.6831 GB, free: 38.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-06/0.1068, allocations: 4 kB / 0.6831 GB, free: 38.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.397e-05/0.1068, allocations: 318.8 kB / 0.6834 GB, free: 38.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.203e-05/0.1069, allocations: 12 kB / 0.6834 GB, free: 38.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.081e-05/0.107, allocations: 25.7 kB / 0.6834 GB, free: 37.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.232e-05/0.1071, allocations: 20.02 kB / 0.6834 GB, free: 37.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1071, allocations: 0 / 0.6834 GB, free: 37.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001822/0.1073, allocations: 65.62 kB / 0.6835 GB, free: 37.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1073, allocations: 4 kB / 0.6835 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1073, allocations: 0 / 0.6835 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1074, allocations: 7.953 kB / 0.6835 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.077e-05/0.1075, allocations: 7.984 kB / 0.6835 GB, free: 37.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1075, allocations: 4 kB / 0.6835 GB, free: 37.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.594e-05/0.1076, allocations: 8 kB / 0.6835 GB, free: 37.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1076, allocations: 3.984 kB / 0.6835 GB, free: 37.87 MB / 346.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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.004e-05/0.1077, allocations: 118.7 kB / 0.6836 GB, free: 37.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.1077, allocations: 7.891 kB / 0.6837 GB, free: 37.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.699e-05/0.1078, allocations: 11.48 kB / 0.6837 GB, free: 37.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1078, allocations: 3.953 kB / 0.6837 GB, free: 37.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1078, allocations: 4 kB / 0.6837 GB, free: 37.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.205e-05/0.1078, allocations: 77.11 kB / 0.6837 GB, free: 37.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.1078, allocations: 4 kB / 0.6838 GB, free: 37.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.108, allocations: 15.98 kB / 0.6838 GB, free: 37.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.108, allocations: 3.984 kB / 0.6838 GB, free: 37.6 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002305/0.1083, allocations: 144.9 kB / 0.6839 GB, free: 37.45 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002072/0.1085, allocations: 234.7 kB / 0.6841 GB, free: 37.2 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.937e-05/0.1086, allocations: 16.05 kB / 0.6841 GB, free: 37.19 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.534e-05/0.1087, allocations: 87.28 kB / 0.6842 GB, free: 37.1 MB / 346.7 MB Notification: Performance of Backend: time 6.21e-07/0.1087, allocations: 3.938 kB / 0.6842 GB, free: 37.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.1091, allocations: 90.39 kB / 0.6843 GB, free: 37 MB / 346.7 MB Notification: Performance of SimCode: time 0.0003358/0.1094, allocations: 0.5838 MB / 0.6849 GB, free: 36.37 MB / 346.7 MB Notification: Performance of Templates: time 0.002998/0.1125, allocations: 0.5317 MB / 0.6854 GB, free: 35.84 MB / 346.7 MB "" Variables in the reference:time,hysteresis.y Variables in the result:Signal.amplitude,Signal.freqHz,Signal.offset,Signal.phase,Signal.startTime,hysteresis.pre_y_start,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time