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.0009162/0.0009163, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008081/0.000808, allocations: 86.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.624e-05/1.615e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 47.59 MB / 363.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3236/0.4237, allocations: 79.61 MB / 442.7 MB, free: 84 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.424, allocations: 78.52 kB / 442.8 MB, free: 44 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01674/0.4408, allocations: 6.055 MB / 448.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4408, allocations: 0 / 448.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.4408, allocations: 4 kB / 448.8 MB, free: 10.94 MB / 330.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.001236/0.4421, allocations: 0.6021 MB / 449.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.4422, allocations: 8.031 kB / 449.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4423, allocations: 38.53 kB / 449.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.4427, allocations: 287.9 kB / 449.8 MB, free: 9.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.4427, allocations: 15.92 kB / 449.8 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.4428, allocations: 16 kB / 449.8 MB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003532/0.4432, allocations: 178.4 kB / 450 MB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003615/0.4435, allocations: 192.6 kB / 450.2 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4435, allocations: 4 kB / 450.2 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.4436, allocations: 3.984 kB / 450.2 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.4436, allocations: 4 kB / 450.2 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.4454, allocations: 1.067 MB / 451.2 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.4458, allocations: 122.4 kB / 451.4 MB, free: 8.621 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/0.4459, allocations: 48.98 kB / 451.4 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.4459, allocations: 0 / 451.4 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.4461, allocations: 114.1 kB / 451.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.4462, allocations: 0 / 451.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003919/0.4466, allocations: 146.2 kB / 451.7 MB, free: 8.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.4466, allocations: 80.73 kB / 451.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.4469, allocations: 242.6 kB / 452 MB, free: 8.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.4469, allocations: 29.7 kB / 452 MB, free: 8.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.447, allocations: 211.5 kB / 452.2 MB, free: 7.844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.4471, allocations: 34.8 kB / 452.2 MB, free: 7.812 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.354e-05/0.4471, allocations: 0 / 452.2 MB, free: 7.812 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4472, allocations: 331.6 kB / 452.6 MB, free: 7.492 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.019e-05/0.4473, allocations: 54.84 kB / 452.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.4475, allocations: 154.3 kB / 452.8 MB, free: 7.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.4476, allocations: 66.8 kB / 452.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4476, allocations: 0 / 452.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004799/0.4481, allocations: 240 kB / 453.1 MB, free: 7.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006249/0.4488, allocations: 1.431 MB / 454.5 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.4488, allocations: 4 kB / 454.5 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.4489, allocations: 32.2 kB / 454.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.4492, allocations: 75.39 kB / 454.6 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009561/0.4502, allocations: 1.252 MB / 455.9 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.4505, allocations: 51.67 kB / 455.9 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.4505, allocations: 10.94 kB / 455.9 MB, free: 4.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-06/0.4505, allocations: 4 kB / 455.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003527/0.4509, allocations: 201.9 kB / 456.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4509, allocations: 4 kB / 456.1 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.109e-05/0.451, allocations: 20.89 kB / 456.2 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.4512, allocations: 67.27 kB / 456.2 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008149/0.452, allocations: 1.251 MB / 457.5 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.4523, allocations: 35.81 kB / 457.5 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.4523, allocations: 15.56 kB / 457.5 MB, free: 2.438 MB / 330.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 () * 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.0001028/0.4524, allocations: 120.9 kB / 457.6 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.733e-05/0.4525, allocations: 23.72 kB / 457.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.71e-05/0.4525, allocations: 23.17 kB / 457.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.4526, allocations: 7.938 kB / 457.7 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.4526, allocations: 0 / 457.7 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.4526, allocations: 3.984 kB / 457.7 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003776/0.453, allocations: 412.7 kB / 458.1 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.453, allocations: 0 / 458.1 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.4532, allocations: 47.92 kB / 458.1 MB, free: 1.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.124e-05/0.4533, allocations: 23.72 kB / 458.2 MB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.4533, allocations: 0 / 458.2 MB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008115/0.4541, allocations: 1.249 MB / 459.4 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4541, allocations: 0 / 459.4 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/0.4544, allocations: 186.9 kB / 459.6 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.4544, allocations: 96.78 kB / 459.7 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.4545, allocations: 7.938 kB / 459.7 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.4547, allocations: 31.97 kB / 459.7 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/0.4548, allocations: 23.48 kB / 459.8 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.4548, allocations: 4 kB / 459.8 MB, free: 136 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001677/0.455, allocations: 192.3 kB / 459.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.455, allocations: 0 / 459.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004761/0.4555, allocations: 123.5 kB / 460.1 MB, free: 15.86 MB / 346.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) * 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.0001613/0.4556, allocations: 111.2 kB / 460.2 MB, free: 15.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007166/0.4564, allocations: 0.5525 MB / 460.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4564, allocations: 0 / 460.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.4566, allocations: 172.2 kB / 460.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.4569, allocations: 31.05 kB / 460.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005264/0.4574, allocations: 285.1 kB / 461.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.4578, allocations: 0.7722 MB / 462 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001986/0.458, allocations: 42.05 kB / 462 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.289e-05/0.458, allocations: 18.62 kB / 462 MB, free: 13.92 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.458, allocations: 0 / 462 MB, free: 13.92 MB / 346.7 MB Notification: Performance of Templates: time 0.006148/0.4642, allocations: 3 MB / 465 MB, free: 10.93 MB / 346.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/jenkins/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