Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 113.2 kB / 17.06 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 200 kB / 18 MB, free: 4.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009313/0.0009313, allocations: 47.92 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3346, allocations: 49.43 MB / 400.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004477/0.3391, allocations: 2.757 MB / 403.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.341, allocations: 0.6739 MB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/0.3413, allocations: 4 kB / 404.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.3415, allocations: 39.58 kB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.3418, allocations: 91.27 kB / 404.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.3423, allocations: 99.8 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.3429, allocations: 358.5 kB / 404.8 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.3432, allocations: 80.7 kB / 404.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.3434, allocations: 135.4 kB / 405 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.3436, allocations: 151.3 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.3437, allocations: 28 kB / 405.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.179e-05/0.3437, allocations: 31.94 kB / 405.2 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.3438, allocations: 59.83 kB / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.344, allocations: 147.2 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.3445, allocations: 328 kB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3445, allocations: 0 / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3445, allocations: 0 / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.3445, allocations: 0 / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001765/0.3463, allocations: 0.6482 MB / 406.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/0.3463, allocations: 11.97 kB / 406.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.3465, allocations: 28.66 kB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.347, allocations: 275.7 kB / 406.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.3471, allocations: 16.8 kB / 406.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.3471, allocations: 24.38 kB / 406.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007588/0.3479, allocations: 278.1 kB / 407 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.3479, allocations: 0 / 407 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.3479, allocations: 4 kB / 407 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.348, allocations: 4 kB / 407 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008327/0.3488, allocations: 253.5 kB / 407.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.3507, allocations: 0.9519 MB / 408.2 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008895/0.3516, allocations: 238.5 kB / 408.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/0.352, allocations: 104.8 kB / 408.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.352, allocations: 3.984 kB / 408.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000543/0.3526, allocations: 185.2 kB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.753e-06/0.3526, allocations: 0 / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002426/0.355, allocations: 0.6512 MB / 409.4 MB, free: 24 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3552, allocations: 106.8 kB / 409.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.3556, allocations: 262.6 kB / 409.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.3556, allocations: 29.7 kB / 409.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.3558, allocations: 179.8 kB / 409.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.3559, allocations: 43.39 kB / 410 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.976e-05/0.356, allocations: 41.7 kB / 410 MB, free: 15.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3561, allocations: 335 kB / 410.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.3565, allocations: 103.9 kB / 410.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.3569, allocations: 168.1 kB / 410.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007048/0.3576, allocations: 268.3 kB / 410.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3577, allocations: 0 / 410.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001239/0.3589, allocations: 435.6 kB / 411.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.368e-05/0.359, allocations: 36.2 kB / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.359, allocations: 0 / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004405/0.3594, allocations: 80.86 kB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.3597, allocations: 39.91 kB / 411.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/0.3629, allocations: 1.951 MB / 413.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.3633, allocations: 59.86 kB / 413.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.3634, allocations: 15.92 kB / 413.5 MB, free: 11.64 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002209/0.3636, allocations: 141.8 kB / 413.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.3637, allocations: 19.72 kB / 413.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.3637, allocations: 33.84 kB / 413.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3637, allocations: 3.984 kB / 413.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3637, allocations: 0 / 413.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3637, allocations: 0 / 413.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/0.3641, allocations: 289.5 kB / 413.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3641, allocations: 0 / 413.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.3642, allocations: 23.97 kB / 414 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003412/0.3646, allocations: 76.8 kB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3646, allocations: 7.938 kB / 414 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002433/0.367, allocations: 1.758 MB / 415.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3671, allocations: 0 / 415.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3682, allocations: 361.4 kB / 416.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.3683, allocations: 96.83 kB / 416.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.3683, allocations: 7.938 kB / 416.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.3686, allocations: 35.95 kB / 416.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.711e-05/0.3687, allocations: 23.97 kB / 416.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3687, allocations: 4 kB / 416.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.369, allocations: 186 kB / 416.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.369, allocations: 3.938 kB / 416.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004015/0.3694, allocations: 75.84 kB / 416.6 MB, free: 8.27 MB / 334.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001715/0.3695, allocations: 108 kB / 416.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.3707, allocations: 406.2 kB / 417.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3707, allocations: 4.062 kB / 417.1 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005083/0.3712, allocations: 240.1 kB / 417.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.3716, allocations: 58.08 kB / 417.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3727, allocations: 435.4 kB / 417.8 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.373, allocations: 0.7557 MB / 418.6 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.3731, allocations: 26.28 kB / 418.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.262e-05/0.3732, allocations: 19.44 kB / 418.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3732, allocations: 0 / 418.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of Templates: time 0.008729/0.382, allocations: 3.866 MB / 422.5 MB, free: 2.32 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches