Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.00155/0.00155, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.00174/0.00174, allocations: 209.8 kB / 24.49 MB, free: 4.137 MB / 14.72 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.401/1.401, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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.Comparator,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.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,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.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 47.88 kB / 379.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2436, allocations: 53.36 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004416/0.248, allocations: 2.941 MB / 435.4 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2494, allocations: 0.7361 MB / 436.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.2496, allocations: 11.94 kB / 436.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.2498, allocations: 51.5 kB / 436.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.25, allocations: 99.19 kB / 436.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.2503, allocations: 111.8 kB / 436.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.2507, allocations: 386.5 kB / 436.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.2509, allocations: 104.5 kB / 436.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.2511, allocations: 155.4 kB / 437 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.2514, allocations: 175.2 kB / 437.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.146e-05/0.2514, allocations: 36 kB / 437.2 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.2515, allocations: 36 kB / 437.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.838e-05/0.2516, allocations: 83.69 kB / 437.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.2517, allocations: 167.1 kB / 437.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005086/0.2522, allocations: 395.7 kB / 437.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2523, allocations: 4 kB / 437.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2523, allocations: 0 / 437.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.2523, allocations: 0 / 437.9 MB, free: 1.48 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001405/0.2537, allocations: 0.6131 MB / 438.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2537, allocations: 8.031 kB / 438.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.131e-05/0.2538, allocations: 36.7 kB / 438.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.2543, allocations: 245.8 kB / 438.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.2543, allocations: 16.88 kB / 438.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.2543, allocations: 32.36 kB / 438.8 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007306/0.2551, allocations: 323 kB / 439.1 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.2551, allocations: 0 / 439.1 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.2551, allocations: 8 kB / 439.1 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2551, allocations: 8 kB / 439.2 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008047/0.2559, allocations: 273.8 kB / 439.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2579, allocations: 1.095 MB / 440.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008151/0.2587, allocations: 202.5 kB / 440.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.259, allocations: 84.8 kB / 440.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.259, allocations: 4 kB / 440.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.2595, allocations: 161.1 kB / 441 MB, free: 14.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2595, allocations: 0 / 441 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001236/0.2607, allocations: 338.1 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.2608, allocations: 81.11 kB / 441.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.2612, allocations: 328.5 kB / 441.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.2612, allocations: 29.7 kB / 441.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.2613, allocations: 219.8 kB / 441.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.2614, allocations: 31.73 kB / 442 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.2615, allocations: 57.89 kB / 442 MB, free: 13.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2616, allocations: 338.8 kB / 442.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.262, allocations: 100.2 kB / 442.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004104/0.2624, allocations: 211.7 kB / 442.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.2631, allocations: 336 kB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2631, allocations: 0 / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009536/0.2641, allocations: 402.1 kB / 443.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.758e-05/0.2642, allocations: 41.69 kB / 443.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.2642, allocations: 4 kB / 443.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.2643, allocations: 28.84 kB / 443.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.2646, allocations: 64.03 kB / 443.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.2658, allocations: 1.307 MB / 444.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.2661, allocations: 63.69 kB / 444.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2662, allocations: 8 kB / 444.9 MB, free: 9.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.2664, allocations: 145.8 kB / 445 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.19e-05/0.2664, allocations: 27.81 kB / 445.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.018e-05/0.2664, allocations: 30.67 kB / 445.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2664, allocations: 4 kB / 445.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2665, allocations: 3.938 kB / 445.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2665, allocations: 384 / 445.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004876/0.2669, allocations: 422.3 kB / 445.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2669, allocations: 0 / 445.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.2671, allocations: 31.91 kB / 445.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.2672, allocations: 40.73 kB / 445.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.2673, allocations: 3.938 kB / 445.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.2683, allocations: 1.295 MB / 446.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2683, allocations: 0 / 446.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007452/0.2691, allocations: 274.5 kB / 447.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.239e-05/0.2691, allocations: 27.84 kB / 447.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.2692, allocations: 4 kB / 447.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.2694, allocations: 23.97 kB / 447.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.2695, allocations: 27.91 kB / 447.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.2695, allocations: 4 kB / 447.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.2697, allocations: 231.1 kB / 447.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2697, allocations: 0 / 447.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.2701, allocations: 71.89 kB / 447.5 MB, free: 7.121 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001703/0.2703, allocations: 109.1 kB / 447.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.2713, allocations: 410 kB / 448 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2713, allocations: 0 / 448 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004737/0.2718, allocations: 215.3 kB / 448.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.2721, allocations: 43.53 kB / 448.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.2732, allocations: 0.5028 MB / 448.8 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.2736, allocations: 0.7558 MB / 449.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.562e-05/0.2737, allocations: 31.38 kB / 449.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2737, allocations: 0 / 449.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of Templates: time 0.007455/0.2811, allocations: 4.659 MB / 454.2 MB, free: 336 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.117848314112052]