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.0008744/0.0008744, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008665/0.0008665, allocations: 143.1 kB / 24.89 MB, free: 8.773 MB / 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.836/0.836, allocations: 173.4 MB / 201.5 MB, free: 8.246 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.312e-06/1.312e-06, allocations: 0 / 268.5 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.008e-05/1.139e-05, allocations: 5.266 kB / 268.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00243/0.002442, allocations: 2.732 MB / 271.2 MB, free: 7.039 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.003473, allocations: 0.6817 MB / 271.9 MB, free: 6.355 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.408e-05/0.003567, allocations: 7.938 kB / 271.9 MB, free: 6.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.003685, allocations: 48.22 kB / 272 MB, free: 6.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.00382, allocations: 97.19 kB / 272.1 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.004026, allocations: 99.75 kB / 272.2 MB, free: 6.109 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.004301, allocations: 364.1 kB / 272.5 MB, free: 5.754 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.004422, allocations: 66.84 kB / 272.6 MB, free: 5.688 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.004579, allocations: 195.5 kB / 272.8 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.004693, allocations: 119.6 kB / 272.9 MB, free: 5.379 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.004726, allocations: 28 kB / 272.9 MB, free: 5.352 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.772e-05/0.004753, allocations: 28.5 kB / 273 MB, free: 5.324 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.004796, allocations: 64.5 kB / 273 MB, free: 5.262 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.211e-05/0.004868, allocations: 103.7 kB / 273.1 MB, free: 5.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.005059, allocations: 219.9 kB / 273.3 MB, free: 4.945 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-06/0.00506, allocations: 0 / 273.3 MB, free: 4.945 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.005061, allocations: 4.688 kB / 273.3 MB, free: 4.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.005064, allocations: 0 / 273.3 MB, free: 4.941 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.0005793/0.005643, allocations: 0.517 MB / 273.9 MB, free: 4.398 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.707e-05/0.00567, allocations: 13.16 kB / 273.9 MB, free: 4.387 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.00572, allocations: 40.91 kB / 273.9 MB, free: 4.348 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.005895, allocations: 189.9 kB / 274.1 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.005908, allocations: 12.88 kB / 274.1 MB, free: 4.121 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.005936, allocations: 24.88 kB / 274.1 MB, free: 4.098 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.006179, allocations: 263.4 kB / 274.4 MB, free: 3.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.006188, allocations: 192 / 274.4 MB, free: 3.816 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.006204, allocations: 12.36 kB / 274.4 MB, free: 3.805 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.006211, allocations: 7.938 kB / 274.4 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.808e-05/0.006289, allocations: 59.42 kB / 274.5 MB, free: 3.742 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006501/0.006939, allocations: 0.6711 MB / 275.1 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.007097, allocations: 98.45 kB / 275.2 MB, free: 2.922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.194e-05/0.007129, allocations: 24.84 kB / 275.3 MB, free: 2.895 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.007142, allocations: 8 kB / 275.3 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/0.007263, allocations: 165.2 kB / 275.4 MB, free: 2.691 MB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 9.61e-07/0.007264, allocations: 0 / 275.4 MB, free: 2.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004896/0.007754, allocations: 265.8 kB / 275.7 MB, free: 2.426 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.007792, allocations: 110.8 kB / 275.8 MB, free: 2.293 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.007917, allocations: 237 kB / 276 MB, free: 2.047 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.007934, allocations: 29.7 kB / 276.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.925e-05/0.008004, allocations: 176.1 kB / 276.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.008028, allocations: 47.56 kB / 276.3 MB, free: 1.785 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.008077, allocations: 45.69 kB / 276.3 MB, free: 1.734 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.00815, allocations: 334.8 kB / 276.6 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.92e-05/0.008189, allocations: 45.69 kB / 276.7 MB, free: 1.348 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.614e-05/0.008275, allocations: 189.3 kB / 276.9 MB, free: 1.109 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.008378, allocations: 152.3 kB / 277 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.008381, allocations: 3.938 kB / 277 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002347/0.008615, allocations: 247.9 kB / 277.3 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.008639, allocations: 37.69 kB / 277.3 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.008643, allocations: 0 / 277.3 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.008842, allocations: 72.98 kB / 277.4 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.682e-05/0.008929, allocations: 51.84 kB / 277.4 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008425/0.009772, allocations: 1.47 MB / 278.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.01011, allocations: 35.86 kB / 278.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.01012, allocations: 12 kB / 278.9 MB, free: 14.88 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 7.159e-05/0.01019, allocations: 129.7 kB / 279.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.01022, allocations: 23.97 kB / 279.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.963e-05/0.01024, allocations: 21.81 kB / 279.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.01024, allocations: 4.203 kB / 279.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.01024, allocations: 4 kB / 279.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.01024, allocations: 3.938 kB / 279.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.944e-05/0.01033, allocations: 133.8 kB / 279.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.01033, allocations: 11.92 kB / 279.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.01037, allocations: 12 kB / 279.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.01051, allocations: 72.78 kB / 279.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.01052, allocations: 3.938 kB / 279.4 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006599/0.01118, allocations: 1.426 MB / 280.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.01118, allocations: 7.969 kB / 280.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.01136, allocations: 161.8 kB / 281 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/0.01138, allocations: 19.8 kB / 281 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.01139, allocations: 8 kB / 281 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.353e-05/0.01147, allocations: 19.97 kB / 281 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.01151, allocations: 23.97 kB / 281 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.01152, allocations: 0 / 281 MB, free: 12.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.618e-05/0.01157, allocations: 78.78 kB / 281.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01157, allocations: 4 kB / 281.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002036/0.01178, allocations: 75.88 kB / 281.2 MB, free: 12.52 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 8.223e-05/0.01186, allocations: 80.42 kB / 281.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.01219, allocations: 340.4 kB / 281.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.01219, allocations: 0 / 281.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.0123, allocations: 175.3 kB / 281.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.01244, allocations: 60.84 kB / 281.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.01347, allocations: 0.6524 MB / 282.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.069e-05/0.01351, allocations: 84.31 kB / 282.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.716e-05/0.01357, allocations: 26.31 kB / 282.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.01368, allocations: 99.34 kB / 282.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01368, allocations: 0 / 282.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of Templates: time 0.005301/0.01898, allocations: 4.001 MB / 286.7 MB, free: 6.984 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.554652037099004]