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.00217/0.00217, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.804/3.804, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001377/0.001377, allocations: 85.42 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005179/0.000518, allocations: 12 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.744/0.7446, allocations: 47.56 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.9503, allocations: 80.2 MB / 455.9 MB, free: 448 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004177/0.9508, allocations: 87.95 kB / 456 MB, free: 360 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03311/0.984, allocations: 6.12 MB / 462.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.448e-06/0.9841, allocations: 4 kB / 462.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.214e-05/0.9841, allocations: 4 kB / 462.1 MB, free: 10.2 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.00189/0.986, allocations: 0.6387 MB / 462.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.9861, allocations: 8.031 kB / 462.8 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.9862, allocations: 40.56 kB / 462.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006164/0.9868, allocations: 296.1 kB / 463.1 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.9869, allocations: 24.88 kB / 463.1 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.873e-05/0.987, allocations: 24.38 kB / 463.2 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.9881, allocations: 301.4 kB / 463.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.9881, allocations: 192 / 463.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.149e-05/0.9882, allocations: 15.92 kB / 463.5 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.9882, allocations: 8 kB / 463.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.9896, allocations: 322 kB / 463.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002994/0.9926, allocations: 1.13 MB / 464.9 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.9938, allocations: 230.6 kB / 465.1 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004635/0.9943, allocations: 108.8 kB / 465.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.583e-05/0.9943, allocations: 0 / 465.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007567/0.9951, allocations: 180.8 kB / 465.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.335e-06/0.9951, allocations: 0 / 465.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.001967/0.9971, allocations: 439.1 kB / 465.9 MB, free: 6.223 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.9972, allocations: 85.08 kB / 465.9 MB, free: 6.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006964/0.9979, allocations: 324.5 kB / 466.3 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.998, allocations: 29.7 kB / 466.3 MB, free: 5.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.9982, allocations: 199.6 kB / 466.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.228e-05/0.9983, allocations: 39.45 kB / 466.5 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.9983, allocations: 4 kB / 466.5 MB, free: 5.516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.9985, allocations: 334.8 kB / 466.9 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/0.9991, allocations: 112.2 kB / 467 MB, free: 5.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.9997, allocations: 222.1 kB / 467.2 MB, free: 4.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/1.001, allocations: 351.3 kB / 467.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/1.001, allocations: 0 / 467.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001614/1.002, allocations: 411.9 kB / 467.9 MB, free: 3.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002406/1.003, allocations: 231.5 kB / 468.2 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/1.003, allocations: 4 kB / 468.2 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/1.003, allocations: 32.84 kB / 468.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004394/1.003, allocations: 67.89 kB / 468.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/1.005, allocations: 1.311 MB / 469.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/1.006, allocations: 60.19 kB / 469.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/1.006, allocations: 15.94 kB / 469.6 MB, free: 2.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.006, allocations: 4 kB / 469.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001301/1.007, allocations: 346.4 kB / 470 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/1.007, allocations: 7.938 kB / 470 MB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/1.007, allocations: 24.84 kB / 470 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/1.008, allocations: 59.89 kB / 470.1 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/1.009, allocations: 1.288 MB / 471.4 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005923/1.01, allocations: 43.97 kB / 471.4 MB, free: 176 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/1.01, allocations: 19.88 kB / 471.4 MB, free: 156 kB / 346.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.0004681/1.01, allocations: 225 kB / 471.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.293e-05/1.011, allocations: 27.62 kB / 471.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.49e-05/1.011, allocations: 25.89 kB / 471.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/1.011, allocations: 3.984 kB / 471.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.011, allocations: 8 kB / 471.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/1.011, allocations: 7.938 kB / 471.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007731/1.011, allocations: 447.3 kB / 472.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/1.011, allocations: 3.984 kB / 472.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/1.012, allocations: 31.97 kB / 472.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001932/1.012, allocations: 36.8 kB / 472.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/1.012, allocations: 7.938 kB / 472.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/1.013, allocations: 1.296 MB / 473.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/1.014, allocations: 0 / 473.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/1.015, allocations: 294.3 kB / 473.8 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/1.015, allocations: 112.7 kB / 473.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/1.015, allocations: 0 / 473.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/1.015, allocations: 35.97 kB / 474 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/1.015, allocations: 23.91 kB / 474 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/1.015, allocations: 4 kB / 474 MB, free: 13.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004242/1.016, allocations: 227.1 kB / 474.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.016, allocations: 0 / 474.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001021/1.017, allocations: 127.7 kB / 474.3 MB, free: 12.99 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.0002326/1.017, allocations: 111.1 kB / 474.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002285/1.019, allocations: 0.7234 MB / 475.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.019, allocations: 4.812 kB / 475.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006622/1.02, allocations: 226.6 kB / 475.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006523/1.021, allocations: 48.75 kB / 475.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/1.022, allocations: 0.5869 MB / 476 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/1.023, allocations: 0.7563 MB / 476.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/1.023, allocations: 19.44 kB / 476.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.393e-06/1.023, allocations: 0 / 476.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of Templates: time 0.01117/1.034, allocations: 4.627 MB / 481.4 MB, free: 5.781 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