Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,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.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,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.InvertingSchmittTrigger") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 176.5 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 225.7 MB / 243.2 MB, free: 8.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007806/0.0007805, allocations: 100 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 4 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2182, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002245/0.2205, allocations: 2.351 MB / 406.9 MB, free: 28.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000961/0.2215, allocations: 0.7164 MB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2216, allocations: 8.781 kB / 407.7 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.2218, allocations: 35.75 kB / 407.7 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.2219, allocations: 77.77 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.2221, allocations: 79.91 kB / 407.9 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.2224, allocations: 331.6 kB / 408.2 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2225, allocations: 81.27 kB / 408.3 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2227, allocations: 116.5 kB / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.2228, allocations: 131.4 kB / 408.5 MB, free: 27.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.2228, allocations: 19.94 kB / 408.5 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.661e-05/0.2229, allocations: 17 kB / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.142e-05/0.2229, allocations: 47.81 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.223, allocations: 153 kB / 408.7 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.2233, allocations: 305.5 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2233, allocations: 0 / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2233, allocations: 0 / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2233, allocations: 1.125 kB / 409 MB, free: 26.84 MB / 298.7 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.0009292/0.2242, allocations: 0.6117 MB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.2243, allocations: 12.03 kB / 409.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.2243, allocations: 32.56 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.2246, allocations: 283.5 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.2246, allocations: 16.81 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.2246, allocations: 16.38 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.2252, allocations: 294.1 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.2252, allocations: 0 / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.2252, allocations: 15.98 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.2252, allocations: 8 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.2258, allocations: 273.5 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2271, allocations: 0.9676 MB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007058/0.2278, allocations: 274.5 kB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.2281, allocations: 116.8 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.2281, allocations: 4 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/0.2285, allocations: 185.8 kB / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.2285, allocations: 0 / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.00195/0.2305, allocations: 0.7371 MB / 412.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.2306, allocations: 102.8 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.2308, allocations: 274.5 kB / 413.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.2308, allocations: 29.7 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.998e-05/0.2309, allocations: 183.8 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.2309, allocations: 39.45 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-06/0.2309, allocations: 0 / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.231, allocations: 342.8 kB / 413.8 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.2313, allocations: 111.9 kB / 413.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.2316, allocations: 198.4 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005492/0.2322, allocations: 318 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2322, allocations: 0 / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009838/0.2332, allocations: 487.6 kB / 414.9 MB, free: 20.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.2332, allocations: 29.7 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2332, allocations: 4 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000324/0.2335, allocations: 84.86 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.2337, allocations: 55.91 kB / 415.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.2358, allocations: 1.846 MB / 416.9 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.2361, allocations: 63.64 kB / 417 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.2361, allocations: 12 kB / 417 MB, free: 18.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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.000109/0.2362, allocations: 145.8 kB / 417.1 MB, free: 18.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.2362, allocations: 23.7 kB / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.2363, allocations: 29.83 kB / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2363, allocations: 0 / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2363, allocations: 3.938 kB / 417.2 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2363, allocations: 4 kB / 417.2 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.2365, allocations: 297.4 kB / 417.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2365, allocations: 0 / 417.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.2367, allocations: 27.98 kB / 417.5 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002306/0.2369, allocations: 80.92 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.2369, allocations: 11.98 kB / 417.6 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.2386, allocations: 1.756 MB / 419.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2386, allocations: 3.938 kB / 419.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000908/0.2395, allocations: 393.5 kB / 419.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.2396, allocations: 108.7 kB / 419.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.2396, allocations: 4 kB / 419.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.2398, allocations: 51.83 kB / 419.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.2399, allocations: 19.97 kB / 419.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.2399, allocations: 4 kB / 419.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001289/0.2401, allocations: 190 kB / 420.1 MB, free: 15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2401, allocations: 4 kB / 420.1 MB, free: 15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003197/0.2404, allocations: 67.91 kB / 420.2 MB, free: 14.93 MB / 298.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: 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.0001255/0.2405, allocations: 111.2 kB / 420.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2416, allocations: 0.5102 MB / 420.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2417, allocations: 0 / 420.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003929/0.2421, allocations: 247 kB / 421 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2424, allocations: 45.94 kB / 421.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.2449, allocations: 1.076 MB / 422.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.245, allocations: 0.7443 MB / 422.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.2452, allocations: 26.28 kB / 422.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.2e-05/0.2452, allocations: 23.44 kB / 422.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2452, allocations: 0 / 422.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of Templates: time 0.005773/0.251, allocations: 3.436 MB / 426.4 MB, free: 8.641 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches