Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.0009038/0.0009039, allocations: 97.7 kB / 17.31 MB, free: 6.391 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.0009908/0.0009908, allocations: 178.2 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002331/0.0002331, allocations: 11.98 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07311/0.07336, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002673/0.07605, allocations: 2.557 MB / 355.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.0772, allocations: 0.6896 MB / 355.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.07737, allocations: 7.938 kB / 355.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.07751, allocations: 35.75 kB / 355.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.07771, allocations: 79.39 kB / 355.9 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.07796, allocations: 103.8 kB / 356 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.07833, allocations: 366.6 kB / 356.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.07854, allocations: 119.5 kB / 356.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.0787, allocations: 123.4 kB / 356.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.07889, allocations: 155.2 kB / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.07894, allocations: 20 kB / 356.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.354e-05/0.07899, allocations: 16 kB / 356.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.07906, allocations: 63.69 kB / 356.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.0792, allocations: 168.9 kB / 357 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.07946, allocations: 295.4 kB / 357.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.07947, allocations: 0 / 357.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.07948, allocations: 0 / 357.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.07949, allocations: 0 / 357.3 MB, free: 14.9 MB / 302.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.001211/0.08071, allocations: 0.6614 MB / 357.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.08075, allocations: 8.031 kB / 357.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.207e-05/0.08082, allocations: 32.56 kB / 358 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.08114, allocations: 287.6 kB / 358.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.08118, allocations: 20.94 kB / 358.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.414e-05/0.08123, allocations: 28.3 kB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007149/0.08195, allocations: 335.9 kB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.08197, allocations: 0 / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.082, allocations: 12 kB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.08202, allocations: 4 kB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.08288, allocations: 306.1 kB / 358.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.08464, allocations: 1.169 MB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008552/0.08551, allocations: 242.5 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.08587, allocations: 104.8 kB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.0859, allocations: 7.984 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004573/0.08637, allocations: 169.1 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.08638, allocations: 0 / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001329/0.08771, allocations: 459.1 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.08777, allocations: 85.05 kB / 361.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/0.0881, allocations: 320.5 kB / 361.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.08814, allocations: 33.7 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.08827, allocations: 211.4 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.08831, allocations: 39.55 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.08836, allocations: 21.7 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.08847, allocations: 338.8 kB / 362.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.08887, allocations: 116.2 kB / 362.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.08931, allocations: 219.9 kB / 362.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.0901, allocations: 371.9 kB / 362.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.09011, allocations: 0 / 362.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001014/0.09113, allocations: 430.9 kB / 363.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.09117, allocations: 41.69 kB / 363.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.09119, allocations: 4 kB / 363.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.09135, allocations: 25 kB / 363.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.09165, allocations: 79.88 kB / 363.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008866/0.09254, allocations: 1.296 MB / 364.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.09293, allocations: 59.56 kB / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.09297, allocations: 28.02 kB / 364.7 MB, free: 6.859 MB / 302.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.0001317/0.0931, allocations: 149.7 kB / 364.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.09315, allocations: 23.72 kB / 364.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.927e-05/0.0932, allocations: 30.61 kB / 364.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.09321, allocations: 0 / 364.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.09322, allocations: 4 kB / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.09323, allocations: 0 / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.09363, allocations: 451.2 kB / 365.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.09364, allocations: 0 / 365.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.09383, allocations: 31.97 kB / 365.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/0.09394, allocations: 36.8 kB / 365.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.09397, allocations: 7.984 kB / 365.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008378/0.09481, allocations: 1.308 MB / 366.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.09483, allocations: 3.984 kB / 366.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.09563, allocations: 310.6 kB / 367.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.09571, allocations: 104.8 kB / 367.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.09575, allocations: 4 kB / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.09602, allocations: 35.95 kB / 367.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.09609, allocations: 15.98 kB / 367.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.09611, allocations: 4 kB / 367.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.09634, allocations: 235 kB / 367.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.09635, allocations: 0 / 367.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003422/0.0967, allocations: 71.84 kB / 367.5 MB, free: 3.82 MB / 302.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.0001007/0.0968, allocations: 103.2 kB / 367.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009851/0.0978, allocations: 442 kB / 368.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.09781, allocations: 4.688 kB / 368.1 MB, free: 3.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004869/0.0983, allocations: 222.7 kB / 368.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.09866, allocations: 49 kB / 368.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009558/0.09962, allocations: 0.6138 MB / 368.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.09989, allocations: 0.7521 MB / 369.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.363e-05/0.09998, allocations: 27.42 kB / 369.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of SimCode: time 5e-07/0.09998, allocations: 0 / 369.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of Templates: time 0.1367/0.2367, allocations: 4.575 MB / 374.3 MB, free: 24.33 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches