Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.5 MB / 245.3 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007543/0.0007543, allocations: 101.5 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003271, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2092, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0921/0.3014, allocations: 81.53 MB / 490.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.3016, allocations: 83.94 kB / 490.3 MB, free: 9.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01613/0.3178, allocations: 5.9 MB / 496.2 MB, free: 4.047 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.582e-06/0.3178, allocations: 0 / 496.2 MB, free: 4.047 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.3178, allocations: 4 kB / 496.2 MB, free: 4.043 MB / 362.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.0009852/0.3188, allocations: 0.599 MB / 496.8 MB, free: 3.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3189, allocations: 12.03 kB / 496.8 MB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.319, allocations: 40.5 kB / 496.8 MB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.3193, allocations: 280.1 kB / 497.1 MB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3193, allocations: 12.81 kB / 497.1 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.3194, allocations: 20.38 kB / 497.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/0.32, allocations: 286.3 kB / 497.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.32, allocations: 4.188 kB / 497.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.3201, allocations: 7.938 kB / 497.4 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3201, allocations: 4 kB / 497.4 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007105/0.3208, allocations: 281.5 kB / 497.7 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.3224, allocations: 1.014 MB / 498.7 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007938/0.3232, allocations: 274.5 kB / 499 MB, free: 1.035 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.3235, allocations: 116.8 kB / 499.1 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.3236, allocations: 4 kB / 499.1 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004719/0.3241, allocations: 189.8 kB / 499.3 MB, free: 0.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 4.819e-06/0.3241, allocations: 3.984 kB / 499.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.002218/0.3263, allocations: 0.7254 MB / 0.4883 GB, free: 15.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.3264, allocations: 106.8 kB / 0.4884 GB, free: 15.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.3266, allocations: 274.8 kB / 0.4887 GB, free: 15.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.3267, allocations: 29.7 kB / 0.4887 GB, free: 15.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.3268, allocations: 183.7 kB / 0.4889 GB, free: 15.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.3268, allocations: 47.44 kB / 0.4889 GB, free: 15.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.616e-05/0.3268, allocations: 4 kB / 0.4889 GB, free: 15.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.327, allocations: 334.8 kB / 0.4892 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003312/0.3273, allocations: 119.9 kB / 0.4894 GB, free: 14.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003983/0.3277, allocations: 199.2 kB / 0.4896 GB, free: 14.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006756/0.3284, allocations: 320.6 kB / 0.4899 GB, free: 14.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3284, allocations: 0 / 0.4899 GB, free: 14.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001157/0.3296, allocations: 479.7 kB / 0.4903 GB, free: 13.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.3296, allocations: 41.62 kB / 0.4904 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3297, allocations: 4 kB / 0.4904 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000447/0.3301, allocations: 80.83 kB / 0.4904 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.3304, allocations: 55.91 kB / 0.4905 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002546/0.333, allocations: 1.85 MB / 0.4923 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.3333, allocations: 67.58 kB / 0.4924 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.3333, allocations: 12 kB / 0.4924 GB, free: 11.51 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.3335, allocations: 141.8 kB / 0.4925 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.439e-05/0.3335, allocations: 23.72 kB / 0.4925 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.454e-05/0.3336, allocations: 25.83 kB / 0.4926 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3336, allocations: 0 / 0.4926 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3336, allocations: 4 kB / 0.4926 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3336, allocations: 3.938 kB / 0.4926 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.3339, allocations: 293.5 kB / 0.4928 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3339, allocations: 0 / 0.4928 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.334, allocations: 27.98 kB / 0.4929 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002651/0.3343, allocations: 80.73 kB / 0.4929 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.3343, allocations: 7.984 kB / 0.493 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.3364, allocations: 1.772 MB / 0.4947 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3364, allocations: 3.938 kB / 0.4947 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.3375, allocations: 399 kB / 0.4951 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.162e-05/0.3375, allocations: 100.8 kB / 0.4952 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.3376, allocations: 4 kB / 0.4952 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.3378, allocations: 43.95 kB / 0.4952 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.848e-05/0.3379, allocations: 23.91 kB / 0.4952 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3379, allocations: 8 kB / 0.4952 GB, free: 8.336 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001841/0.3381, allocations: 190 kB / 0.4954 GB, free: 8.152 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3381, allocations: 4 kB / 0.4954 GB, free: 8.148 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003721/0.3385, allocations: 75.84 kB / 0.4955 GB, free: 8.074 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001433/0.3387, allocations: 99.25 kB / 0.4956 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.3399, allocations: 0.5096 MB / 0.4961 GB, free: 7.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3399, allocations: 0 / 0.4961 GB, free: 7.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.3404, allocations: 247 kB / 0.4963 GB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.3407, allocations: 50.53 kB / 0.4964 GB, free: 7.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002714/0.3434, allocations: 1.08 MB / 0.4974 GB, free: 6.023 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3437, allocations: 0.7521 MB / 0.4982 GB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.64e-05/0.3438, allocations: 19.44 kB / 0.4982 GB, free: 5.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3438, allocations: 0 / 0.4982 GB, free: 5.23 MB / 378.7 MB Notification: Performance of Templates: time 0.005547/0.3494, allocations: 4.149 MB / 0.5022 GB, free: 1.102 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches