Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009357/0.0009357, allocations: 85.95 kB / 23 MB, free: 1.504 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.001024/0.001024, allocations: 175.7 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9977/0.9977, allocations: 158.6 MB / 188.3 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 3.938 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.474e-05, allocations: 6.25 kB / 252.3 MB, free: 7.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003557/0.003582, allocations: 2.802 MB / 255.1 MB, free: 4.402 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.004951, allocations: 0.7253 MB / 255.8 MB, free: 3.668 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.005221, allocations: 7.938 kB / 255.8 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.005436, allocations: 59.44 kB / 255.9 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.005642, allocations: 99.12 kB / 256 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.005973, allocations: 115.7 kB / 256.1 MB, free: 3.391 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.006393, allocations: 414.1 kB / 256.5 MB, free: 2.984 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.006577, allocations: 88.45 kB / 256.6 MB, free: 2.895 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.006875, allocations: 219.5 kB / 256.8 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.007082, allocations: 139.6 kB / 256.9 MB, free: 2.543 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.488e-05/0.007147, allocations: 36 kB / 257 MB, free: 2.508 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.652e-05/0.007193, allocations: 40 kB / 257 MB, free: 2.469 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.33e-05/0.007257, allocations: 79.67 kB / 257.1 MB, free: 2.391 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.007381, allocations: 115.7 kB / 257.2 MB, free: 2.277 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.00771, allocations: 259 kB / 257.5 MB, free: 2.023 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.007715, allocations: 0 / 257.5 MB, free: 2.023 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.007716, allocations: 0 / 257.5 MB, free: 2.023 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.007723, allocations: 4 kB / 257.5 MB, free: 2.02 MB / 234.7 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.0009596/0.008683, allocations: 0.6856 MB / 258.1 MB, free: 1.289 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.008728, allocations: 8.031 kB / 258.2 MB, free: 1.281 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.00884, allocations: 64.69 kB / 258.2 MB, free: 1.219 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.009189, allocations: 232 kB / 258.4 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.009215, allocations: 16.88 kB / 258.5 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.009257, allocations: 24.38 kB / 258.5 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.009724, allocations: 197.3 kB / 258.7 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.009741, allocations: 4.172 kB / 258.7 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.009772, allocations: 12.38 kB / 258.7 MB, free: 0.707 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.009783, allocations: 7.938 kB / 258.7 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.009984, allocations: 79.44 kB / 258.8 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.01145, allocations: 0.9203 MB / 259.7 MB, free: 15.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.01172, allocations: 90.98 kB / 259.8 MB, free: 15.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.501e-05/0.01177, allocations: 23.72 kB / 259.8 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.0118, allocations: 4 kB / 259.8 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.01199, allocations: 104.4 kB / 259.9 MB, free: 15.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.01199, allocations: 0 / 259.9 MB, free: 15.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005117/0.0125, allocations: 153.5 kB / 260.1 MB, free: 15.21 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.01255, allocations: 85.11 kB / 260.1 MB, free: 15.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.01283, allocations: 324 kB / 260.5 MB, free: 14.78 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.01286, allocations: 25.7 kB / 260.5 MB, free: 14.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.01303, allocations: 270.5 kB / 260.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.01306, allocations: 39.67 kB / 260.8 MB, free: 14.44 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.651e-05/0.01316, allocations: 55.58 kB / 260.8 MB, free: 14.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.01333, allocations: 0.504 MB / 261.3 MB, free: 13.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.01343, allocations: 66 kB / 261.4 MB, free: 13.79 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.0136, allocations: 193.1 kB / 261.6 MB, free: 13.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.01386, allocations: 256.5 kB / 261.9 MB, free: 13.2 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.01386, allocations: 0 / 261.9 MB, free: 13.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003358/0.0142, allocations: 280.6 kB / 262.1 MB, free: 12.9 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.01423, allocations: 37.77 kB / 262.2 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.01424, allocations: 4 kB / 262.2 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002041/0.01444, allocations: 47.58 kB / 262.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.01458, allocations: 55.91 kB / 262.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009281/0.01551, allocations: 1.729 MB / 264 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.0157, allocations: 35.81 kB / 264 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.01572, allocations: 15.98 kB / 264 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001289/0.01585, allocations: 176.8 kB / 264.2 MB, free: 10.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00013/0.01598, allocations: 209 kB / 264.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001767/0.01616, allocations: 246.6 kB / 264.7 MB, free: 10.09 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.01616, allocations: 3.938 kB / 264.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0003092/0.01647, allocations: 284.5 kB / 264.9 MB, free: 9.781 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.01649, allocations: 33.7 kB / 265 MB, free: 9.742 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.0165, allocations: 4 kB / 265 MB, free: 9.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/0.01664, allocations: 43.64 kB / 265 MB, free: 9.691 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.01676, allocations: 55.91 kB / 265.1 MB, free: 9.637 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008459/0.0176, allocations: 1.725 MB / 266.8 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.01776, allocations: 35.81 kB / 266.8 MB, free: 7.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.01778, allocations: 8 kB / 266.8 MB, free: 7.75 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001306/0.01791, allocations: 280 kB / 267.1 MB, free: 7.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.01794, allocations: 31.98 kB / 267.2 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.01797, allocations: 21.77 kB / 267.2 MB, free: 7.414 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01797, allocations: 4 kB / 267.2 MB, free: 7.41 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01798, allocations: 0 / 267.2 MB, free: 7.41 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.01798, allocations: 7.922 kB / 267.2 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.01829, allocations: 369.5 kB / 267.5 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01829, allocations: 0 / 267.5 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.715e-05/0.01836, allocations: 23.92 kB / 267.6 MB, free: 6.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001311/0.01849, allocations: 51.67 kB / 267.6 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.0185, allocations: 0 / 267.6 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007183/0.01921, allocations: 1.729 MB / 269.4 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.01921, allocations: 0 / 269.4 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.0194, allocations: 167.5 kB / 269.5 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.01943, allocations: 27.8 kB / 269.5 MB, free: 4.863 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.01945, allocations: 7.984 kB / 269.5 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.863e-05/0.01953, allocations: 15.98 kB / 269.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.01958, allocations: 11.98 kB / 269.6 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.01959, allocations: 7.984 kB / 269.6 MB, free: 4.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001177/0.01971, allocations: 209.1 kB / 269.8 MB, free: 4.617 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01971, allocations: 0 / 269.8 MB, free: 4.617 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003963/0.02011, allocations: 139.7 kB / 269.9 MB, free: 4.48 MB / 250.7 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 (10): * Single equations (assignments): 7 * 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.0001225/0.02023, allocations: 99.28 kB / 270 MB, free: 4.371 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.02083, allocations: 0.6886 MB / 270.7 MB, free: 3.605 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.02084, allocations: 4 kB / 270.7 MB, free: 3.602 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.021, allocations: 209.5 kB / 270.9 MB, free: 3.375 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.02126, allocations: 58.72 kB / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008344/0.0221, allocations: 450.6 kB / 271.4 MB, free: 2.848 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.206e-05/0.02215, allocations: 80.64 kB / 271.5 MB, free: 2.75 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.02225, allocations: 38.27 kB / 271.5 MB, free: 2.715 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.02239, allocations: 114.1 kB / 271.6 MB, free: 2.602 MB / 250.7 MB Notification: Performance of SimCode: time 1.152e-06/0.02239, allocations: 0 / 271.6 MB, free: 2.602 MB / 250.7 MB Notification: Performance of Templates: time 0.007407/0.02979, allocations: 4.102 MB / 275.7 MB, free: 14.52 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.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.916757191065699]