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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 110.4 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 55.91 kB / 328.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1506, allocations: 46.6 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00541/0.1561, allocations: 2.843 MB / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.1582, allocations: 0.7407 MB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004348/0.1587, allocations: 4 kB / 378.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.1592, allocations: 51.5 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004279/0.1596, allocations: 103.2 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.1601, allocations: 107.8 kB / 379 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.1606, allocations: 406.3 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.161, allocations: 143.8 kB / 379.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.1612, allocations: 143.5 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2626/0.4238, allocations: 174.1 kB / 379.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.424, allocations: 35.75 kB / 379.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.657e-05/0.4241, allocations: 37.12 kB / 379.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.249e-05/0.4242, allocations: 76.34 kB / 380 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.4245, allocations: 175.8 kB / 380.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006811/0.4251, allocations: 395.9 kB / 380.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.4252, allocations: 2.781 kB / 380.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4252, allocations: 0 / 380.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.4252, allocations: 0 / 380.6 MB, free: 9.934 MB / 318.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.001408/0.4266, allocations: 0.6805 MB / 381.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4267, allocations: 9.812 kB / 381.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.744e-05/0.4267, allocations: 40.78 kB / 381.3 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.4272, allocations: 298.3 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.4273, allocations: 17.31 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.4273, allocations: 25.89 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.4281, allocations: 288 kB / 381.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4282, allocations: 5.719 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.4282, allocations: 11.38 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.4282, allocations: 9.062 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009098/0.4291, allocations: 283.7 kB / 382.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.4311, allocations: 1.037 MB / 383.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007304/0.4318, allocations: 202.6 kB / 383.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.4321, allocations: 79.61 kB / 383.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.4322, allocations: 1.156 kB / 383.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.4326, allocations: 156.5 kB / 383.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.934e-06/0.4326, allocations: 0 / 383.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001192/0.4338, allocations: 397.5 kB / 384.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.4338, allocations: 79.78 kB / 384.2 MB, free: 8.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.4342, allocations: 330.4 kB / 384.5 MB, free: 8.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.4342, allocations: 31.53 kB / 384.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.4343, allocations: 201.4 kB / 384.7 MB, free: 8.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.4344, allocations: 44.05 kB / 384.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.313e-05/0.4345, allocations: 52.19 kB / 384.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.4346, allocations: 336 kB / 385.1 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003277/0.4349, allocations: 102.5 kB / 385.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.4352, allocations: 200.4 kB / 385.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.4359, allocations: 314.7 kB / 385.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4359, allocations: 2.312 kB / 385.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009118/0.4368, allocations: 391.3 kB / 386.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.4369, allocations: 38.2 kB / 386.1 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4369, allocations: 3.594 kB / 386.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/0.4372, allocations: 36.36 kB / 386.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.4374, allocations: 61.72 kB / 386.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009212/0.4384, allocations: 1.393 MB / 387.6 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.4387, allocations: 62.95 kB / 387.7 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.4388, allocations: 16.31 kB / 387.7 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003723/0.4392, allocations: 186.3 kB / 387.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003311/0.4395, allocations: 188.6 kB / 388.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005316/0.44, allocations: 291.9 kB / 388.4 MB, free: 5.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.4401, allocations: 1.25 kB / 388.4 MB, free: 5.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007823/0.4408, allocations: 366.2 kB / 388.7 MB, free: 5.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.4409, allocations: 38.67 kB / 388.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4409, allocations: 4.406 kB / 388.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001167/0.441, allocations: 32.16 kB / 388.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.4413, allocations: 52.92 kB / 388.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007288/0.442, allocations: 1.402 MB / 390.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.4423, allocations: 37.8 kB / 390.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.4423, allocations: 11.05 kB / 390.3 MB, free: 3.672 MB / 318.1 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.0001307/0.4425, allocations: 207.5 kB / 390.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.674e-05/0.4425, allocations: 29.08 kB / 390.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.4426, allocations: 29.02 kB / 390.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4426, allocations: 1.188 kB / 390.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4426, allocations: 5.891 kB / 390.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4426, allocations: 1.188 kB / 390.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004657/0.4431, allocations: 457 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4431, allocations: 0.875 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.4433, allocations: 27.7 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.692e-05/0.4434, allocations: 35.16 kB / 391.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.4434, allocations: 6.078 kB / 391.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006951/0.4441, allocations: 1.392 MB / 392.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4441, allocations: 1.094 kB / 392.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.4448, allocations: 261.9 kB / 392.7 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.4449, allocations: 103.9 kB / 392.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.624e-05/0.4449, allocations: 7.422 kB / 392.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.4452, allocations: 19.61 kB / 392.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.818e-05/0.4453, allocations: 20.48 kB / 392.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.4453, allocations: 11.08 kB / 392.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002839/0.4456, allocations: 226.7 kB / 393.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4456, allocations: 1.25 kB / 393.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006256/0.4462, allocations: 126 kB / 393.2 MB, free: 1.219 MB / 318.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 (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.0001591/0.4464, allocations: 106.1 kB / 393.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.4479, allocations: 0.696 MB / 394 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.4479, allocations: 0.9688 kB / 394 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004469/0.4484, allocations: 209 kB / 394.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.4487, allocations: 64.08 kB / 394.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009935/0.4497, allocations: 478 kB / 394.8 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.4501, allocations: 0.7567 MB / 395.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000157/0.4502, allocations: 40.66 kB / 395.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.67e-05/0.4503, allocations: 25.31 kB / 395.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4503, allocations: 1 kB / 395.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of Templates: time 0.00892/0.4592, allocations: 3.668 MB / 399.3 MB, free: 15.25 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches