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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009518/0.0009518, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009156/0.0009156, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9975/0.9975, allocations: 173.3 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] 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=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.472e-05, allocations: 6.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003143/0.003167, allocations: 2.771 MB / 270.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.004798, allocations: 0.6621 MB / 271.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.004968, allocations: 4 kB / 271.5 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.005111, allocations: 39.58 kB / 271.5 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.005288, allocations: 103.1 kB / 271.6 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.005571, allocations: 95.81 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.005918, allocations: 366.3 kB / 272.1 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.006073, allocations: 60.89 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.006292, allocations: 191.6 kB / 272.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.006424, allocations: 119.6 kB / 272.4 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.115e-05/0.006465, allocations: 28 kB / 272.5 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.393e-05/0.006499, allocations: 36 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.9e-05/0.006548, allocations: 59.75 kB / 272.6 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.109e-05/0.006639, allocations: 111.7 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.006888, allocations: 219.2 kB / 272.9 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.006891, allocations: 3.938 kB / 272.9 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.006892, allocations: 0 / 272.9 MB, free: 1.531 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.006898, allocations: 0 / 272.9 MB, free: 1.531 MB / 250.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.0007941/0.007692, allocations: 0.6468 MB / 273.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.007727, allocations: 12.03 kB / 273.5 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.007807, allocations: 48.73 kB / 273.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.008071, allocations: 220.1 kB / 273.8 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.008095, allocations: 16.86 kB / 273.8 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.008122, allocations: 24.38 kB / 273.8 MB, free: 0.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003507/0.008473, allocations: 277 kB / 274.1 MB, free: 204 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.008483, allocations: 192 / 274.1 MB, free: 204 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.008504, allocations: 16.36 kB / 274.1 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.008515, allocations: 7.938 kB / 274.1 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.008656, allocations: 78.95 kB / 274.2 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009967/0.009653, allocations: 0.8782 MB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.009882, allocations: 111.1 kB / 275.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.467e-05/0.009947, allocations: 39.89 kB / 275.2 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.009966, allocations: 11.94 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.01014, allocations: 183.3 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/0.01015, allocations: 0 / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006768/0.01082, allocations: 308.9 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.01088, allocations: 110.8 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.01107, allocations: 304.3 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.01109, allocations: 29.7 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.583e-05/0.01118, allocations: 230.8 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.01121, allocations: 47.64 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.01127, allocations: 51.36 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.01139, allocations: 0.5001 MB / 277 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.23e-05/0.01146, allocations: 57.69 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.01159, allocations: 221.3 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.01176, allocations: 205.3 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.01177, allocations: 0 / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003761/0.01214, allocations: 304.4 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.01218, allocations: 37.69 kB / 277.8 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.01218, allocations: 4 kB / 277.8 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.01248, allocations: 79.73 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.912e-05/0.01258, allocations: 47.91 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.01384, allocations: 2.165 MB / 280.1 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.01398, allocations: 39.91 kB / 280.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.014, allocations: 19.92 kB / 280.1 MB, free: 9.688 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 9.867e-05/0.0141, allocations: 168.5 kB / 280.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.01413, allocations: 27.86 kB / 280.3 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.01416, allocations: 25.77 kB / 280.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.01416, allocations: 0 / 280.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.01416, allocations: 0 / 280.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.01416, allocations: 0 / 280.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.01432, allocations: 212.4 kB / 280.6 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01432, allocations: 4 kB / 280.6 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/0.01436, allocations: 20.05 kB / 280.6 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.01455, allocations: 79.64 kB / 280.7 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.01456, allocations: 3.984 kB / 280.7 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.01559, allocations: 2.11 MB / 282.8 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.0156, allocations: 4.031 kB / 282.8 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.01586, allocations: 215.8 kB / 283 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.912e-05/0.01589, allocations: 27.8 kB / 283 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.01591, allocations: 0 / 283 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.016, allocations: 31.91 kB / 283.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.01607, allocations: 19.91 kB / 283.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.01608, allocations: 8.125 kB / 283.1 MB, free: 6.551 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001154/0.01619, allocations: 209.1 kB / 283.3 MB, free: 6.344 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01619, allocations: 0 / 283.3 MB, free: 6.344 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.01647, allocations: 75.89 kB / 283.4 MB, free: 6.27 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.0001418/0.01661, allocations: 99.28 kB / 283.5 MB, free: 6.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005571/0.01717, allocations: 422.2 kB / 283.9 MB, free: 5.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01717, allocations: 0 / 283.9 MB, free: 5.711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.01734, allocations: 229.5 kB / 284.1 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.01757, allocations: 51.84 kB / 284.1 MB, free: 5.418 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.01892, allocations: 0.6743 MB / 284.8 MB, free: 4.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.25e-05/0.01897, allocations: 84.31 kB / 284.9 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.033e-05/0.01904, allocations: 22.3 kB / 284.9 MB, free: 4.598 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.0191, allocations: 24.5 kB / 284.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of SimCode: time 9.71e-07/0.0191, allocations: 0 / 284.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of Templates: time 0.006173/0.02527, allocations: 4.06 MB / 289 MB, free: 0.5547 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 240] 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","",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.725987723097205]