Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 191.9 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009327/0.0009322, allocations: 96.95 kB / 299.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002907, allocations: 8 kB / 360.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3089, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002455/0.3114, allocations: 2.361 MB / 414.4 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.3127, allocations: 0.9128 MB / 415.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.3129, allocations: 4 kB / 415.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.313, allocations: 27.77 kB / 415.4 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.3132, allocations: 81.44 kB / 415.5 MB, free: 22.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.3134, allocations: 83.91 kB / 415.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.3137, allocations: 334.5 kB / 415.9 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.3139, allocations: 77.12 kB / 415.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.314, allocations: 115.5 kB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.3142, allocations: 135.3 kB / 416.2 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.3142, allocations: 16 kB / 416.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.074e-05/0.3143, allocations: 12 kB / 416.2 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.3143, allocations: 47.77 kB / 416.3 MB, free: 21.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.3145, allocations: 157 kB / 416.4 MB, free: 21.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.3147, allocations: 308.3 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3147, allocations: 0 / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3147, allocations: 4 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3148, allocations: 0 / 416.7 MB, free: 21.17 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.001023/0.3158, allocations: 0.6069 MB / 417.3 MB, free: 20.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3158, allocations: 12.03 kB / 417.3 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.3159, allocations: 28.56 kB / 417.4 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.3162, allocations: 287.6 kB / 417.6 MB, free: 20.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.3162, allocations: 16.81 kB / 417.7 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/0.3162, allocations: 20.38 kB / 417.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.3168, allocations: 298 kB / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3168, allocations: 0 / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.3168, allocations: 7.984 kB / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3169, allocations: 8 kB / 418 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006507/0.3175, allocations: 265.6 kB / 418.2 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3188, allocations: 0.9716 MB / 419.2 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007252/0.3196, allocations: 274.5 kB / 419.5 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.3198, allocations: 112.8 kB / 419.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.3199, allocations: 0 / 419.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004294/0.3203, allocations: 201.8 kB / 419.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.3203, allocations: 3.938 kB / 419.8 MB, free: 17.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002006/0.3223, allocations: 0.7258 MB / 420.5 MB, free: 17.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.3224, allocations: 111 kB / 420.6 MB, free: 16.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.3226, allocations: 266.5 kB / 420.9 MB, free: 16.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3227, allocations: 37.58 kB / 420.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.798e-05/0.3227, allocations: 175.8 kB / 421.1 MB, free: 16.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.3228, allocations: 47.44 kB / 421.1 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.3228, allocations: 4 kB / 421.1 MB, free: 16.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/0.3229, allocations: 338.8 kB / 421.5 MB, free: 16.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.3232, allocations: 111.9 kB / 421.6 MB, free: 16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.3235, allocations: 197.1 kB / 421.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005775/0.3241, allocations: 319.2 kB / 422.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3241, allocations: 0 / 422.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001027/0.3251, allocations: 491.5 kB / 422.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.3252, allocations: 33.7 kB / 422.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3252, allocations: 4 kB / 422.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.3256, allocations: 84.8 kB / 422.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.3257, allocations: 51.95 kB / 422.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.328, allocations: 1.846 MB / 424.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.3283, allocations: 63.72 kB / 424.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.3283, allocations: 12.11 kB / 424.7 MB, free: 12.69 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.00013/0.3285, allocations: 148.4 kB / 424.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.3285, allocations: 23.72 kB / 424.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.86e-05/0.3285, allocations: 29.83 kB / 424.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3286, allocations: 0 / 424.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3286, allocations: 3.938 kB / 424.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3286, allocations: 0 / 424.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.3288, allocations: 301.4 kB / 425.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3288, allocations: 0 / 425.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.3289, allocations: 31.91 kB / 425.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002365/0.3292, allocations: 84.8 kB / 425.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.3292, allocations: 0 / 425.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001738/0.3309, allocations: 1.756 MB / 427 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3309, allocations: 0 / 427 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008877/0.3318, allocations: 405.6 kB / 427.4 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.3319, allocations: 104.8 kB / 427.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.3319, allocations: 4.125 kB / 427.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.3322, allocations: 51.84 kB / 427.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.573e-05/0.3323, allocations: 23.97 kB / 427.6 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.3323, allocations: 0 / 427.6 MB, free: 9.516 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001452/0.3324, allocations: 194 kB / 427.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3324, allocations: 0 / 427.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003473/0.3328, allocations: 67.91 kB / 427.9 MB, free: 9.262 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.0001451/0.3329, allocations: 115.2 kB / 428 MB, free: 9.137 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3341, allocations: 0.5018 MB / 428.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3341, allocations: 0 / 428.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.3345, allocations: 250.9 kB / 428.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.3348, allocations: 48.44 kB / 428.8 MB, free: 8.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.3373, allocations: 1.068 MB / 429.8 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.3375, allocations: 0.7482 MB / 430.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.3377, allocations: 22.3 kB / 430.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.657e-05/0.3377, allocations: 19.44 kB / 430.6 MB, free: 6.395 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3377, allocations: 0 / 430.6 MB, free: 6.395 MB / 298.7 MB Notification: Performance of Templates: time 0.006871/0.3446, allocations: 3.441 MB / 434.1 MB, free: 2.969 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches