Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001422/0.001422, allocations: 183 kB / 18.04 MB, free: 3.781 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.443/1.443, allocations: 205.4 MB / 224.2 MB, free: 9.023 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.0008193/0.0008193, allocations: 93.59 kB / 272.5 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 12 kB / 329.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2336, allocations: 47.59 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09155/0.3252, allocations: 80.19 MB / 457.2 MB, free: 364 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3255, allocations: 83.95 kB / 457.3 MB, free: 280 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01756/0.3431, allocations: 6.128 MB / 463.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3432, allocations: 3.938 kB / 463.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.3432, allocations: 4 kB / 463.5 MB, free: 10.11 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.001438/0.3446, allocations: 0.6387 MB / 464.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3447, allocations: 12.03 kB / 464.1 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.3449, allocations: 32.56 kB / 464.1 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.3453, allocations: 296.1 kB / 464.4 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.3453, allocations: 20.94 kB / 464.4 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.3454, allocations: 24.38 kB / 464.5 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006777/0.3461, allocations: 301.4 kB / 464.8 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3461, allocations: 192 / 464.8 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.3461, allocations: 15.94 kB / 464.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3462, allocations: 4 kB / 464.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008463/0.347, allocations: 318 kB / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.349, allocations: 1.134 MB / 466.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.3497, allocations: 234.5 kB / 466.5 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.35, allocations: 108.8 kB / 466.6 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.35, allocations: 0 / 466.6 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004781/0.3505, allocations: 172.9 kB / 466.7 MB, free: 6.609 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.923e-06/0.3505, allocations: 0 / 466.7 MB, free: 6.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.001207/0.3518, allocations: 443.2 kB / 467.2 MB, free: 6.148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3518, allocations: 85.09 kB / 467.2 MB, free: 6.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.3522, allocations: 324.4 kB / 467.6 MB, free: 5.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3522, allocations: 29.7 kB / 467.6 MB, free: 5.684 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3524, allocations: 199.6 kB / 467.8 MB, free: 5.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.3524, allocations: 39.45 kB / 467.8 MB, free: 5.445 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.3524, allocations: 4 kB / 467.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3526, allocations: 334.8 kB / 468.2 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.3529, allocations: 112.2 kB / 468.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.3533, allocations: 226.1 kB / 468.5 MB, free: 4.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.354, allocations: 348.1 kB / 468.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.354, allocations: 0 / 468.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009042/0.3549, allocations: 415.9 kB / 469.2 MB, free: 3.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.3551, allocations: 234.7 kB / 469.5 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3551, allocations: 8 kB / 469.5 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/0.3553, allocations: 28.84 kB / 469.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.3556, allocations: 71.88 kB / 469.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.3568, allocations: 1.296 MB / 470.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.3571, allocations: 63.75 kB / 470.9 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.3572, allocations: 19.92 kB / 470.9 MB, free: 2.012 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/0.3572, allocations: 0 / 470.9 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007491/0.3579, allocations: 350.1 kB / 471.3 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.358, allocations: 4 kB / 471.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.127e-05/0.358, allocations: 24.84 kB / 471.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.3583, allocations: 63.95 kB / 471.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008812/0.3592, allocations: 1.288 MB / 472.7 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.3595, allocations: 47.88 kB / 472.7 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.3595, allocations: 11.94 kB / 472.7 MB, free: 88 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.000238/0.3598, allocations: 233 kB / 473 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.872e-05/0.3598, allocations: 31.56 kB / 473 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.3599, allocations: 29.89 kB / 473 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3599, allocations: 0 / 473 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3599, allocations: 4 kB / 473 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3599, allocations: 3.938 kB / 473 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004823/0.3604, allocations: 451.2 kB / 473.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3604, allocations: 0 / 473.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3606, allocations: 36 kB / 473.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.595e-05/0.3607, allocations: 28.78 kB / 473.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.3607, allocations: 11.92 kB / 473.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009004/0.3616, allocations: 1.288 MB / 474.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3616, allocations: 0 / 474.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.3623, allocations: 298.4 kB / 475.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-05/0.3624, allocations: 112.7 kB / 475.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.3625, allocations: 4 kB / 475.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.3627, allocations: 35.95 kB / 475.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.3628, allocations: 15.98 kB / 475.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.3628, allocations: 11.98 kB / 475.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002583/0.3631, allocations: 231 kB / 475.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3631, allocations: 0 / 475.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006389/0.3637, allocations: 123.8 kB / 475.6 MB, free: 12.92 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.000177/0.3639, allocations: 119.1 kB / 475.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.3654, allocations: 0.7238 MB / 476.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3654, allocations: 4.375 kB / 476.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.3659, allocations: 218.6 kB / 476.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/0.3664, allocations: 56.55 kB / 476.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3676, allocations: 0.5505 MB / 477.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.368, allocations: 0.7563 MB / 478.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.3682, allocations: 42.95 kB / 478.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.875e-05/0.3683, allocations: 23.42 kB / 478.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3683, allocations: 4 kB / 478.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of Templates: time 0.007902/0.3762, allocations: 3.262 MB / 481.4 MB, free: 7.055 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches