Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001044/0.001044, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 169.3 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9846/0.9846, allocations: 177 MB / 205.1 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.49e-05/1.601e-05, allocations: 2.312 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00353/0.003546, allocations: 2.888 MB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.00466, allocations: 0.7049 MB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.004799, allocations: 7.938 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.004933, allocations: 55.5 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.005113, allocations: 107 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.005334, allocations: 99.75 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.005673, allocations: 406.2 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.005835, allocations: 96.44 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.006055, allocations: 223.5 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.006222, allocations: 139.6 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.00627, allocations: 36 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.697e-05/0.006317, allocations: 36 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.006373, allocations: 75.69 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.006477, allocations: 127.7 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.006744, allocations: 259 kB / 278.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.006746, allocations: 0 / 278.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006746, allocations: 0 / 278.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.616e-06/0.00675, allocations: 4 kB / 278.6 MB, free: 11.92 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007869/0.007537, allocations: 0.6935 MB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.007569, allocations: 8.031 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.007647, allocations: 60.7 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.007899, allocations: 240.8 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.007918, allocations: 21.03 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.007952, allocations: 28.38 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002978/0.00825, allocations: 217 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.008259, allocations: 192 / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.008279, allocations: 16.38 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.008288, allocations: 11.94 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.008425, allocations: 80.52 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.009584, allocations: 0.9289 MB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.00973, allocations: 79.06 kB / 281 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/0.009763, allocations: 23.67 kB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.00978, allocations: 4 kB / 281 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.009922, allocations: 149.7 kB / 281.1 MB, free: 9.164 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.052e-06/0.009923, allocations: 0 / 281.1 MB, free: 9.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.000313/0.01024, allocations: 161.2 kB / 281.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.01027, allocations: 111 kB / 281.4 MB, free: 8.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.01044, allocations: 324 kB / 281.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.01046, allocations: 37.64 kB / 281.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.01057, allocations: 270.5 kB / 282 MB, free: 8.215 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.01059, allocations: 39.67 kB / 282.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.01066, allocations: 63.31 kB / 282.1 MB, free: 8.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.01077, allocations: 0.5118 MB / 282.6 MB, free: 7.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.743e-05/0.01081, allocations: 49.67 kB / 282.7 MB, free: 7.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.01093, allocations: 252.9 kB / 282.9 MB, free: 7.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.01109, allocations: 258.8 kB / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01109, allocations: 0 / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002634/0.01135, allocations: 304.4 kB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.01138, allocations: 33.7 kB / 283.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01138, allocations: 4 kB / 283.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001545/0.01154, allocations: 51.75 kB / 283.6 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.01164, allocations: 59.89 kB / 283.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000679/0.01232, allocations: 1.729 MB / 285.4 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.01244, allocations: 39.77 kB / 285.4 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.01246, allocations: 20.11 kB / 285.4 MB, free: 4.492 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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 8.615e-05/0.01255, allocations: 176 kB / 285.6 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.01257, allocations: 31.8 kB / 285.6 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.0126, allocations: 29.77 kB / 285.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.0126, allocations: 0 / 285.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.0126, allocations: 4 kB / 285.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.01261, allocations: 0 / 285.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.01284, allocations: 381.4 kB / 286 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01284, allocations: 0 / 286 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.69e-05/0.01289, allocations: 24.02 kB / 286.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001073/0.013, allocations: 35.66 kB / 286.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.013, allocations: 0 / 286.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008006/0.0138, allocations: 1.729 MB / 287.8 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01381, allocations: 0 / 287.8 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001609/0.01397, allocations: 179.9 kB / 288 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.75e-05/0.01399, allocations: 31.8 kB / 288 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.01402, allocations: 4 kB / 288 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/0.01409, allocations: 23.92 kB / 288 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.01414, allocations: 23.95 kB / 288.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.01414, allocations: 4.094 kB / 288.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.631e-05/0.01423, allocations: 209.1 kB / 288.3 MB, free: 1.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01423, allocations: 0 / 288.3 MB, free: 1.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.01444, allocations: 79.83 kB / 288.4 MB, free: 1.359 MB / 266.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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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 9.365e-05/0.01453, allocations: 103.1 kB / 288.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002828/0.01481, allocations: 378 kB / 288.8 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.01481, allocations: 0 / 288.8 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.01494, allocations: 225.4 kB / 289 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.01514, allocations: 44.94 kB / 289.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.01579, allocations: 467.1 kB / 289.5 MB, free: 72 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.634e-05/0.01584, allocations: 84.31 kB / 289.6 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.038e-05/0.01591, allocations: 34.28 kB / 289.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.01602, allocations: 122.1 kB / 289.8 MB, free: 15.81 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01602, allocations: 4 kB / 289.8 MB, free: 15.8 MB / 282.7 MB Notification: Performance of Templates: time 0.005186/0.02121, allocations: 3.765 MB / 293.6 MB, free: 12.09 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.7173822959885]