Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001414/0.001414, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001149/0.001148, allocations: 95.09 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.107e-05, allocations: 4 kB / 314.8 MB, free: 9.133 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3234, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4645, allocations: 79.39 MB / 441.7 MB, free: 6.922 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.4649, allocations: 79.95 kB / 441.8 MB, free: 6.844 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02891/0.4938, allocations: 6.054 MB / 447.9 MB, free: 0.8203 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4939, allocations: 0 / 447.9 MB, free: 0.8203 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.291e-05/0.4939, allocations: 4 kB / 447.9 MB, free: 0.8164 MB / 331.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.001628/0.4956, allocations: 0.6026 MB / 448.5 MB, free: 168 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4956, allocations: 12.03 kB / 448.5 MB, free: 156 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.4958, allocations: 35.53 kB / 448.5 MB, free: 120 kB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.4964, allocations: 291.3 kB / 448.8 MB, free: 15.79 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.4964, allocations: 8.875 kB / 448.8 MB, free: 15.79 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-05/0.4965, allocations: 16 kB / 448.8 MB, free: 15.77 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005697/0.4971, allocations: 177.1 kB / 449 MB, free: 15.6 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.4976, allocations: 199.8 kB / 449.2 MB, free: 15.39 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4977, allocations: 5.969 kB / 449.2 MB, free: 15.39 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.4977, allocations: 0 / 449.2 MB, free: 15.39 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4977, allocations: 8 kB / 449.2 MB, free: 15.38 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/0.5006, allocations: 1.068 MB / 450.3 MB, free: 14.24 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004935/0.5012, allocations: 118.6 kB / 450.4 MB, free: 14.11 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.5013, allocations: 40.86 kB / 450.4 MB, free: 14.07 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.5014, allocations: 4 kB / 450.4 MB, free: 14.07 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003002/0.5017, allocations: 114.8 kB / 450.5 MB, free: 13.94 MB / 347.1 MB Notification: Performance of pre-optimization done (n=11): time 2.455e-06/0.5017, allocations: 3.938 kB / 450.6 MB, free: 13.93 MB / 347.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005521/0.5023, allocations: 142.3 kB / 450.7 MB, free: 13.79 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.5024, allocations: 85.09 kB / 450.8 MB, free: 13.68 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.5028, allocations: 238.2 kB / 451 MB, free: 13.45 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.5028, allocations: 25.7 kB / 451 MB, free: 13.41 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.5031, allocations: 274 kB / 451.3 MB, free: 13.14 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.5031, allocations: 36.67 kB / 451.3 MB, free: 13.11 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.5032, allocations: 0 / 451.3 MB, free: 13.11 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5033, allocations: 322.8 kB / 451.6 MB, free: 12.79 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.5035, allocations: 48.23 kB / 451.7 MB, free: 12.74 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.5037, allocations: 150 kB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.5039, allocations: 68.53 kB / 451.9 MB, free: 12.48 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.504, allocations: 4 kB / 451.9 MB, free: 12.47 MB / 347.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007014/0.5047, allocations: 228.2 kB / 452.1 MB, free: 12.24 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006457/0.5053, allocations: 1.428 MB / 453.6 MB, free: 10.7 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.5054, allocations: 4 kB / 453.6 MB, free: 10.7 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002653/0.5057, allocations: 36.83 kB / 453.6 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006858/0.5064, allocations: 63.89 kB / 453.7 MB, free: 10.59 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.5084, allocations: 1.258 MB / 454.9 MB, free: 9.223 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/0.5091, allocations: 51.92 kB / 455 MB, free: 9.172 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.5091, allocations: 16 kB / 455 MB, free: 9.156 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.5092, allocations: 5.25 kB / 455 MB, free: 9.152 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006346/0.5098, allocations: 201.7 kB / 455.2 MB, free: 8.953 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.5098, allocations: 4 kB / 455.2 MB, free: 8.949 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00012/0.51, allocations: 16.86 kB / 455.2 MB, free: 8.93 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.5104, allocations: 63.89 kB / 455.3 MB, free: 8.867 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.5117, allocations: 1.249 MB / 456.5 MB, free: 7.508 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004358/0.5122, allocations: 39.97 kB / 456.6 MB, free: 7.469 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.5122, allocations: 16 kB / 456.6 MB, free: 7.453 MB / 347.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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete 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.0001656/0.5124, allocations: 117.8 kB / 456.7 MB, free: 7.332 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.5125, allocations: 27.66 kB / 456.7 MB, free: 7.305 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.036e-05/0.5126, allocations: 21.83 kB / 456.7 MB, free: 7.285 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.5126, allocations: 4 kB / 456.7 MB, free: 7.281 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.5126, allocations: 0 / 456.7 MB, free: 7.281 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5126, allocations: 4 kB / 456.8 MB, free: 7.277 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006337/0.5133, allocations: 411.7 kB / 457.2 MB, free: 6.828 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5133, allocations: 0 / 457.2 MB, free: 6.828 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.5136, allocations: 39.91 kB / 457.2 MB, free: 6.789 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.5138, allocations: 32.86 kB / 457.2 MB, free: 6.754 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.5138, allocations: 1.781 kB / 457.2 MB, free: 6.754 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.5151, allocations: 1.244 MB / 458.5 MB, free: 5.395 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5151, allocations: 0 / 458.5 MB, free: 5.395 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000459/0.5156, allocations: 188.3 kB / 458.7 MB, free: 5.18 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.5157, allocations: 96.81 kB / 458.7 MB, free: 5.066 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.5158, allocations: 4 kB / 458.8 MB, free: 5.062 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/0.5162, allocations: 35.91 kB / 458.8 MB, free: 5.027 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5163, allocations: 23.92 kB / 458.8 MB, free: 5.004 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.5163, allocations: 0 / 458.8 MB, free: 5.004 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.5166, allocations: 190 kB / 459 MB, free: 4.816 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5166, allocations: 0 / 459 MB, free: 4.816 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007998/0.5174, allocations: 123.5 kB / 459.1 MB, free: 4.695 MB / 347.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) * 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 (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 0.0001875/0.5176, allocations: 111.2 kB / 459.2 MB, free: 4.578 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.5188, allocations: 0.5429 MB / 459.8 MB, free: 3.992 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5188, allocations: 2.062 kB / 459.8 MB, free: 3.992 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003657/0.5192, allocations: 161.6 kB / 459.9 MB, free: 3.824 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.5196, allocations: 43.52 kB / 460 MB, free: 3.785 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008942/0.5205, allocations: 314.7 kB / 460.3 MB, free: 3.449 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.521, allocations: 0.7715 MB / 461 MB, free: 2.648 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5211, allocations: 19.44 kB / 461.1 MB, free: 2.629 MB / 347.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5211, allocations: 0 / 461.1 MB, free: 2.629 MB / 347.1 MB Notification: Performance of Templates: time 0.01027/0.5314, allocations: 4.313 MB / 465.4 MB, free: 14.34 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches