Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009824/0.0009824, allocations: 161.4 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.005/1.005, allocations: 177.1 MB / 205 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.085e-06/3.085e-06, allocations: 4 kB / 273 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.949e-05, allocations: 2.312 kB / 273 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.007025/0.007054, allocations: 2.787 MB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.008452, allocations: 0.6972 MB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.008633, allocations: 4 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.0088, allocations: 43.58 kB / 276.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.009039, allocations: 107.1 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.009377, allocations: 103.7 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.009852, allocations: 358.4 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.01004, allocations: 56.89 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.01036, allocations: 199.5 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.01056, allocations: 107.7 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.792e-05/0.01062, allocations: 31.98 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.01067, allocations: 35.94 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.346e-05/0.01073, allocations: 67.75 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.01085, allocations: 91.77 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.01118, allocations: 219.2 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.01119, allocations: 4 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.01119, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.0112, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.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.001115/0.01231, allocations: 0.6584 MB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.01236, allocations: 15.97 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.01248, allocations: 52.75 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.01282, allocations: 216.1 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.01284, allocations: 16.88 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.01288, allocations: 16.38 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.01335, allocations: 281.1 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.01337, allocations: 4.125 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.01339, allocations: 16.36 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.01341, allocations: 7.938 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.01361, allocations: 82.95 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.01486, allocations: 0.878 MB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.01516, allocations: 115.1 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.068e-05/0.01524, allocations: 35.67 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.01527, allocations: 7.984 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.01549, allocations: 179.5 kB / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.01549, allocations: 0 / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009262/0.01642, allocations: 316.5 kB / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.01648, allocations: 114.7 kB / 280.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.01674, allocations: 300.2 kB / 281.2 MB, free: 9.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.01676, allocations: 29.7 kB / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.01688, allocations: 226.9 kB / 281.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.721e-05/0.01692, allocations: 47.64 kB / 281.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.758e-05/0.01701, allocations: 55.58 kB / 281.5 MB, free: 8.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.01716, allocations: 0.5001 MB / 282 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.01726, allocations: 57.62 kB / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.01743, allocations: 230 kB / 282.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.01765, allocations: 192.3 kB / 282.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.01765, allocations: 4 kB / 282.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005184/0.01817, allocations: 315.2 kB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.01822, allocations: 33.7 kB / 282.8 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.01823, allocations: 0 / 282.8 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000375/0.0186, allocations: 83.62 kB / 282.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.01874, allocations: 35.98 kB / 283 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.02038, allocations: 2.172 MB / 285.1 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.02057, allocations: 36 kB / 285.2 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.0206, allocations: 19.94 kB / 285.2 MB, free: 4.711 MB / 266.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 (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.0001143/0.02071, allocations: 172.5 kB / 285.4 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.02075, allocations: 35.84 kB / 285.4 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.249e-05/0.02079, allocations: 17.78 kB / 285.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.02079, allocations: 4 kB / 285.4 MB, free: 4.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.02079, allocations: 0 / 285.4 MB, free: 4.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.0208, allocations: 3.984 kB / 285.4 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.02099, allocations: 208.5 kB / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.02099, allocations: 0 / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.77e-05/0.02106, allocations: 15.98 kB / 285.6 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002496/0.02131, allocations: 75.62 kB / 285.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.02132, allocations: 0 / 285.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.02263, allocations: 2.126 MB / 287.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.02264, allocations: 0 / 287.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.02299, allocations: 215.8 kB / 288 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.02303, allocations: 27.84 kB / 288.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.02307, allocations: 4 kB / 288.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.0232, allocations: 27.97 kB / 288.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.02327, allocations: 23.84 kB / 288.1 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.02328, allocations: 4 kB / 288.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001537/0.02343, allocations: 209.1 kB / 288.3 MB, free: 1.363 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02343, allocations: 4 kB / 288.3 MB, free: 1.359 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004191/0.02385, allocations: 75.83 kB / 288.4 MB, free: 1.285 MB / 266.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.02398, allocations: 99.25 kB / 288.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.02459, allocations: 419.8 kB / 288.9 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.02459, allocations: 0 / 288.9 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.02481, allocations: 229.5 kB / 289.1 MB, free: 500 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.02513, allocations: 48.27 kB / 289.2 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.02692, allocations: 0.6671 MB / 289.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.735e-05/0.02697, allocations: 84.17 kB / 289.9 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.709e-05/0.02707, allocations: 26.33 kB / 290 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.972e-05/0.02713, allocations: 20.5 kB / 290 MB, free: 15.6 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02713, allocations: 4 kB / 290 MB, free: 15.59 MB / 282.7 MB Notification: Performance of Templates: time 0.007845/0.03498, allocations: 4.088 MB / 294.1 MB, free: 11.57 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7141430601477623]