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.00148/0.00148, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001053/0.001052, allocations: 87.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3436, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.4767, allocations: 80.13 MB / 454.7 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.4771, allocations: 83.95 kB / 454.8 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02934/0.5064, allocations: 6.128 MB / 460.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5065, allocations: 7.938 kB / 460.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.5065, allocations: 4 kB / 460.9 MB, free: 10.38 MB / 346.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.001896/0.5084, allocations: 0.6424 MB / 461.5 MB, free: 9.676 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.5085, allocations: 8.031 kB / 461.6 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.5087, allocations: 35.62 kB / 461.6 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005415/0.5092, allocations: 295.3 kB / 461.9 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.644e-05/0.5093, allocations: 16.56 kB / 461.9 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.5094, allocations: 24 kB / 461.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.5105, allocations: 296.8 kB / 462.2 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.5105, allocations: 0 / 462.2 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.5106, allocations: 12 kB / 462.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.5106, allocations: 4 kB / 462.2 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.5121, allocations: 322 kB / 462.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/0.5152, allocations: 1.142 MB / 463.7 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.5166, allocations: 238.5 kB / 463.9 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.5167, allocations: 4 kB / 463.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007653/0.5175, allocations: 169.1 kB / 464.1 MB, free: 6.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.535e-06/0.5175, allocations: 0 / 464.1 MB, free: 6.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.002092/0.5196, allocations: 443.2 kB / 464.5 MB, free: 6.516 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.5197, allocations: 85.05 kB / 464.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005408/0.5203, allocations: 287.6 kB / 464.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.5203, allocations: 33.7 kB / 464.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.5206, allocations: 258 kB / 465.2 MB, free: 5.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.589e-05/0.5206, allocations: 31.55 kB / 465.2 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.449e-05/0.5207, allocations: 8.375 kB / 465.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.5208, allocations: 318.8 kB / 465.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006483/0.5215, allocations: 112.2 kB / 465.6 MB, free: 5.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006511/0.5222, allocations: 218.1 kB / 465.8 MB, free: 5.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.5228, allocations: 157.5 kB / 466 MB, free: 4.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.5228, allocations: 0 / 466 MB, free: 4.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001665/0.5245, allocations: 400 kB / 466.4 MB, free: 4.543 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006163/0.5252, allocations: 1.421 MB / 467.8 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.5252, allocations: 4 kB / 467.8 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003024/0.5255, allocations: 36.83 kB / 467.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.5261, allocations: 63.89 kB / 467.9 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.5275, allocations: 1.311 MB / 469.2 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006809/0.5282, allocations: 67.78 kB / 469.3 MB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.5283, allocations: 12 kB / 469.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5283, allocations: 4 kB / 469.3 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001417/0.5297, allocations: 348.5 kB / 469.6 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.5297, allocations: 4 kB / 469.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.5299, allocations: 24.84 kB / 469.7 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004443/0.5304, allocations: 59.91 kB / 469.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.5317, allocations: 1.296 MB / 471 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.5323, allocations: 44.08 kB / 471.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.5323, allocations: 11.95 kB / 471.1 MB, free: 15.45 MB / 362.7 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 () * 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.0003436/0.5327, allocations: 225 kB / 471.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.5328, allocations: 27.62 kB / 471.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.551e-05/0.5329, allocations: 29.89 kB / 471.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.5329, allocations: 0 / 471.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.5329, allocations: 8 kB / 471.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.5329, allocations: 0 / 471.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007316/0.5337, allocations: 459.1 kB / 471.8 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5337, allocations: 0 / 471.8 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/0.534, allocations: 35.97 kB / 471.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.5342, allocations: 28.88 kB / 471.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.5343, allocations: 7.984 kB / 471.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.5356, allocations: 1.304 MB / 473.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5356, allocations: 0 / 473.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.5369, allocations: 308.1 kB / 473.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.5371, allocations: 108.8 kB / 473.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.5371, allocations: 4 kB / 473.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/0.5376, allocations: 31.97 kB / 473.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.5377, allocations: 19.97 kB / 473.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.5378, allocations: 4 kB / 473.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003859/0.5381, allocations: 227.1 kB / 473.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5382, allocations: 0 / 473.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008126/0.539, allocations: 127.7 kB / 474 MB, free: 12.28 MB / 362.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 (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.0001996/0.5392, allocations: 115.2 kB / 474.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.5417, allocations: 0.724 MB / 474.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.5418, allocations: 0 / 474.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.5425, allocations: 226.7 kB / 475 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.5431, allocations: 48.67 kB / 475.1 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.5446, allocations: 0.5974 MB / 475.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.545, allocations: 0.7641 MB / 476.5 MB, free: 9.676 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.5452, allocations: 23.44 kB / 476.5 MB, free: 9.652 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5452, allocations: 0 / 476.5 MB, free: 9.652 MB / 362.7 MB Notification: Performance of Templates: time 0.01047/0.5557, allocations: 4.493 MB / 481 MB, free: 5.18 MB / 362.7 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