Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009427/0.0009428, allocations: 192.1 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007564/0.0007563, allocations: 95.91 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002259, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1998, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002073/0.202, allocations: 2.463 MB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008539/0.2028, allocations: 0.6962 MB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.203, allocations: 5.594 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.2031, allocations: 39.7 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.2032, allocations: 76.03 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.2035, allocations: 77.66 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002361/0.2037, allocations: 354.5 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2039, allocations: 110.7 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.204, allocations: 127.9 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.2041, allocations: 149.1 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.17e-05/0.2042, allocations: 20 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.073e-05/0.2042, allocations: 16 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.2043, allocations: 59.64 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.2044, allocations: 169 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.2046, allocations: 296.8 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2046, allocations: 0 / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2046, allocations: 0.9062 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2046, allocations: 0 / 412.7 MB, free: 23.05 MB / 298.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.0009746/0.2056, allocations: 0.651 MB / 413.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.2056, allocations: 12.03 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.2057, allocations: 32.56 kB / 413.4 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.206, allocations: 295.5 kB / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.206, allocations: 20.94 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.206, allocations: 20.38 kB / 413.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.2066, allocations: 335.9 kB / 414 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2067, allocations: 0 / 414 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.2067, allocations: 12 kB / 414 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2067, allocations: 8 kB / 414.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000684/0.2074, allocations: 306 kB / 414.4 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.2088, allocations: 1.161 MB / 415.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.2095, allocations: 234.5 kB / 415.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.2097, allocations: 108.8 kB / 415.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.2098, allocations: 0 / 415.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003728/0.2101, allocations: 181 kB / 416 MB, free: 19.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.2102, allocations: 3.938 kB / 416 MB, free: 19.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001077/0.2112, allocations: 455.4 kB / 416.5 MB, free: 19.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.2113, allocations: 85.2 kB / 416.6 MB, free: 18.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.2115, allocations: 324.3 kB / 416.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.2116, allocations: 33.7 kB / 416.9 MB, free: 18.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.2116, allocations: 207.5 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.2117, allocations: 35.55 kB / 417.1 MB, free: 18.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.2117, allocations: 4 kB / 417.2 MB, free: 18.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.73e-05/0.2117, allocations: 338.8 kB / 417.5 MB, free: 17.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000302/0.212, allocations: 112.2 kB / 417.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.2124, allocations: 222.9 kB / 417.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.2129, allocations: 356 kB / 418.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.213, allocations: 4 kB / 418.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007712/0.2137, allocations: 423.7 kB / 418.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.2138, allocations: 41.69 kB / 418.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2138, allocations: 4 kB / 418.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.2139, allocations: 29 kB / 418.6 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.2142, allocations: 71.89 kB / 418.7 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006209/0.2148, allocations: 1.315 MB / 420 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.2151, allocations: 63.81 kB / 420.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2151, allocations: 11.98 kB / 420.1 MB, free: 15.07 MB / 298.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: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.2152, allocations: 153.7 kB / 420.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.2153, allocations: 27.62 kB / 420.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.2153, allocations: 26.61 kB / 420.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2153, allocations: 4 kB / 420.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2153, allocations: 0 / 420.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2153, allocations: 4 kB / 420.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000291/0.2156, allocations: 455.1 kB / 420.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2157, allocations: 3.938 kB / 420.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.2158, allocations: 39.91 kB / 420.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.081e-05/0.2159, allocations: 32.86 kB / 420.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.2159, allocations: 0 / 420.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005382/0.2165, allocations: 1.311 MB / 422.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2165, allocations: 0 / 422.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006039/0.2171, allocations: 298.4 kB / 422.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.609e-05/0.2172, allocations: 108.7 kB / 422.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.322e-05/0.2172, allocations: 0 / 422.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.2174, allocations: 44.05 kB / 422.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.2175, allocations: 15.92 kB / 422.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.2175, allocations: 7.984 kB / 422.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000166/0.2177, allocations: 227.1 kB / 422.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2177, allocations: 0 / 422.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000289/0.218, allocations: 71.84 kB / 422.9 MB, free: 12.03 MB / 298.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 (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.339e-05/0.2181, allocations: 99.19 kB / 423 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007923/0.2189, allocations: 442.5 kB / 423.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2189, allocations: 4.25 kB / 423.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.2193, allocations: 226.7 kB / 423.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.2196, allocations: 51.39 kB / 423.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007327/0.2203, allocations: 0.5868 MB / 424.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.2205, allocations: 0.7521 MB / 425 MB, free: 9.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.807e-05/0.2205, allocations: 23.42 kB / 425.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2206, allocations: 8 kB / 425.1 MB, free: 9.746 MB / 298.7 MB Notification: Performance of Templates: time 0.004552/0.2251, allocations: 4.59 MB / 429.7 MB, free: 5.172 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches