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.001607/0.001607, allocations: 109.4 kB / 17.16 MB, free: 6.082 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.001841/0.001841, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.268/2.268, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 42.41 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1639, allocations: 49.45 MB / 350.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00671/0.1706, allocations: 2.92 MB / 353 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.1731, allocations: 0.6973 MB / 353.7 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004114/0.1735, allocations: 8 kB / 353.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003752/0.1741, allocations: 39.69 kB / 353.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005087/0.1746, allocations: 79.38 kB / 353.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.1752, allocations: 91.91 kB / 353.9 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007306/0.1759, allocations: 378.5 kB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003767/0.1763, allocations: 111.6 kB / 354.4 MB, free: 488 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003325/0.1767, allocations: 135.4 kB / 354.5 MB, free: 352 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000384/0.1771, allocations: 171.2 kB / 354.7 MB, free: 180 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.478e-05/0.1772, allocations: 20 kB / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1773, allocations: 24 kB / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1774, allocations: 67.69 kB / 354.8 MB, free: 68 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.1777, allocations: 151.2 kB / 354.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.1782, allocations: 299.5 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1782, allocations: 3.984 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1782, allocations: 0 / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.1782, allocations: 0 / 355.2 MB, free: 15.62 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.00216/0.1804, allocations: 0.6886 MB / 355.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.1804, allocations: 8.031 kB / 355.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.1806, allocations: 40.56 kB / 356 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/0.1812, allocations: 291.5 kB / 356.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.1812, allocations: 16.94 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-05/0.1813, allocations: 24.38 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.1824, allocations: 319.9 kB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1824, allocations: 8 kB / 356.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.1824, allocations: 4 kB / 356.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1825, allocations: 8 kB / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.1837, allocations: 278 kB / 356.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/0.1866, allocations: 1.142 MB / 358 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.1878, allocations: 210.5 kB / 358.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004517/0.1882, allocations: 84.78 kB / 358.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.1883, allocations: 4.125 kB / 358.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006654/0.189, allocations: 157 kB / 358.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 2.665e-06/0.189, allocations: 0 / 358.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001855/0.1908, allocations: 423 kB / 358.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.1909, allocations: 77.11 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005916/0.1915, allocations: 332.4 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.477e-05/0.1916, allocations: 25.7 kB / 359.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.1918, allocations: 207.5 kB / 359.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/0.1919, allocations: 35.56 kB / 359.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.1921, allocations: 53.92 kB / 359.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1923, allocations: 334.8 kB / 359.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004983/0.1928, allocations: 100.2 kB / 360 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005699/0.1934, allocations: 221.9 kB / 360.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009813/0.1944, allocations: 334.4 kB / 360.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.1944, allocations: 384 / 360.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001427/0.1958, allocations: 395.8 kB / 361 MB, free: 9.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.691e-05/0.1959, allocations: 37.73 kB / 361 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.1959, allocations: 4 kB / 361 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.1962, allocations: 44.7 kB / 361.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/0.1967, allocations: 59.89 kB / 361.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.1983, allocations: 1.304 MB / 362.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.1988, allocations: 55.81 kB / 362.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.1989, allocations: 12 kB / 362.5 MB, free: 7.809 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.0002684/0.1992, allocations: 145.7 kB / 362.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.1993, allocations: 27.72 kB / 362.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.695e-05/0.1993, allocations: 26.61 kB / 362.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1994, allocations: 4 kB / 362.7 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1994, allocations: 0 / 362.7 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1994, allocations: 3.984 kB / 362.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007068/0.2001, allocations: 459 kB / 363.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2001, allocations: 0 / 363.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.2004, allocations: 31.95 kB / 363.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.2006, allocations: 28.83 kB / 363.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.2006, allocations: 15.97 kB / 363.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.202, allocations: 1.301 MB / 364.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.202, allocations: 8.062 kB / 364.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.2031, allocations: 270.3 kB / 364.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.2032, allocations: 104.8 kB / 364.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.2033, allocations: 0 / 364.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.2037, allocations: 23.97 kB / 364.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.2038, allocations: 15.98 kB / 364.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.2039, allocations: 7.984 kB / 364.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004877/0.2044, allocations: 235.1 kB / 365.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2044, allocations: 0 / 365.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006993/0.2051, allocations: 67.84 kB / 365.2 MB, free: 4.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.0002311/0.2053, allocations: 107.1 kB / 365.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.2072, allocations: 406.8 kB / 365.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.2073, allocations: 3.938 kB / 365.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008705/0.2082, allocations: 218.5 kB / 365.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/0.209, allocations: 53.27 kB / 366 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.2111, allocations: 0.5876 MB / 366.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.2117, allocations: 0.7599 MB / 367.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.2118, allocations: 23.44 kB / 367.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2119, allocations: 0 / 367.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of Templates: time 0.2978/0.5097, allocations: 4.599 MB / 372 MB, free: 25.21 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