Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 103 kB / 17.74 MB, free: 5.367 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.002007/0.002007, allocations: 188.5 kB / 18.66 MB, free: 4.449 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.48/1.48, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 47.94 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2511, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003616/0.2547, allocations: 2.761 MB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.2559, allocations: 0.6661 MB / 404.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.256, allocations: 4 kB / 404.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.2562, allocations: 47.56 kB / 404.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.2564, allocations: 95.19 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.2567, allocations: 87.81 kB / 405.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.257, allocations: 366.5 kB / 405.5 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.2572, allocations: 84.7 kB / 405.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.2574, allocations: 127.5 kB / 405.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.2575, allocations: 147.4 kB / 405.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.2576, allocations: 28 kB / 405.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.883e-05/0.2576, allocations: 28 kB / 405.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.51e-05/0.2577, allocations: 75.67 kB / 405.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.2579, allocations: 143.3 kB / 406.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.2582, allocations: 320 kB / 406.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2582, allocations: 7.938 kB / 406.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2582, allocations: 0 / 406.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2582, allocations: 0 / 406.4 MB, free: 3.895 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.001183/0.2594, allocations: 0.6379 MB / 407 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2594, allocations: 11.89 kB / 407 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.551e-05/0.2595, allocations: 32.59 kB / 407.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.2599, allocations: 279.7 kB / 407.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2599, allocations: 16.81 kB / 407.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.979e-05/0.26, allocations: 24.38 kB / 407.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006277/0.2606, allocations: 282 kB / 407.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2606, allocations: 0 / 407.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.2607, allocations: 7.984 kB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.2607, allocations: 8 kB / 407.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007305/0.2614, allocations: 245.6 kB / 407.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.2629, allocations: 0.9558 MB / 408.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008291/0.2638, allocations: 238.5 kB / 409.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.2641, allocations: 96.78 kB / 409.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.2641, allocations: 0 / 409.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/0.2646, allocations: 192 kB / 409.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.2646, allocations: 0 / 409.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002317/0.2669, allocations: 0.6473 MB / 410 MB, free: 12 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.267, allocations: 110.8 kB / 410.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.2673, allocations: 262.6 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2673, allocations: 37.7 kB / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.2675, allocations: 179.7 kB / 410.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.875e-05/0.2675, allocations: 43.45 kB / 410.7 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-05/0.2676, allocations: 45.7 kB / 410.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2677, allocations: 334.8 kB / 411 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.2681, allocations: 100.1 kB / 411.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.2685, allocations: 182.2 kB / 411.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/0.2692, allocations: 289.9 kB / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2692, allocations: 0 / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001196/0.2704, allocations: 447.5 kB / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.2705, allocations: 40.2 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2705, allocations: 8.062 kB / 412.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003618/0.2708, allocations: 72.8 kB / 412.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.2711, allocations: 43.97 kB / 412.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00274/0.2738, allocations: 2.005 MB / 414.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.2742, allocations: 51.66 kB / 414.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.2742, allocations: 11.98 kB / 414.3 MB, free: 11.5 MB / 334.1 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 (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 (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.0001486/0.2744, allocations: 141.9 kB / 414.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.2744, allocations: 27.66 kB / 414.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.53e-05/0.2745, allocations: 33.77 kB / 414.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2745, allocations: 0 / 414.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2745, allocations: 4 kB / 414.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2745, allocations: 0 / 414.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.2747, allocations: 293.4 kB / 414.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2748, allocations: 0 / 414.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.2749, allocations: 23.97 kB / 414.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002716/0.2752, allocations: 80.8 kB / 414.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2752, allocations: 3.938 kB / 414.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/0.2775, allocations: 1.916 MB / 416.8 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2775, allocations: 3.938 kB / 416.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2786, allocations: 363.7 kB / 417.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.2787, allocations: 100.8 kB / 417.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.2787, allocations: 4 kB / 417.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.279, allocations: 35.95 kB / 417.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.071e-05/0.279, allocations: 19.98 kB / 417.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.2791, allocations: 7.984 kB / 417.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2793, allocations: 190 kB / 417.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2793, allocations: 0 / 417.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.2797, allocations: 67.91 kB / 417.5 MB, free: 7.969 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.0001331/0.2798, allocations: 115.1 kB / 417.6 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.2811, allocations: 489.7 kB / 418.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2811, allocations: 0 / 418.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.2816, allocations: 231 kB / 418.4 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.2819, allocations: 53.95 kB / 418.4 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.2848, allocations: 0.923 MB / 419.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.2851, allocations: 0.744 MB / 420.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.2852, allocations: 23.44 kB / 420.1 MB, free: 5.301 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2852, allocations: 0 / 420.1 MB, free: 5.301 MB / 334.1 MB Notification: Performance of Templates: time 0.00561/0.2908, allocations: 4.238 MB / 424.3 MB, free: 1.082 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches