Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 175.7 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 103.3 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003565, allocations: 11.94 kB / 352.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3107, allocations: 50.4 MB / 402.8 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.421, allocations: 81.77 MB / 484.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.4213, allocations: 83.89 kB / 484.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01758/0.4389, allocations: 6.279 MB / 490.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.439, allocations: 0 / 490.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.439, allocations: 4 kB / 490.9 MB, free: 8.117 MB / 362.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.001128/0.4401, allocations: 0.6387 MB / 491.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.4402, allocations: 12.03 kB / 491.5 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.126e-05/0.4403, allocations: 32.56 kB / 491.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.4407, allocations: 296.1 kB / 491.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.4407, allocations: 20.94 kB / 491.9 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.4408, allocations: 24.38 kB / 491.9 MB, free: 7.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/0.4415, allocations: 336.1 kB / 492.2 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.4415, allocations: 192 / 492.2 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.4415, allocations: 23.92 kB / 492.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4415, allocations: 4 kB / 492.3 MB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007849/0.4423, allocations: 302 kB / 492.6 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.4443, allocations: 1.215 MB / 493.8 MB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007376/0.445, allocations: 234.6 kB / 494 MB, free: 4.801 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002905/0.4453, allocations: 108.8 kB / 494.1 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4454, allocations: 0 / 494.1 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004639/0.4458, allocations: 182.2 kB / 494.3 MB, free: 4.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.4458, allocations: 0 / 494.3 MB, free: 4.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.00121/0.4471, allocations: 455.4 kB / 494.7 MB, free: 4.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.4471, allocations: 77.2 kB / 494.8 MB, free: 3.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.4475, allocations: 340.3 kB / 495.1 MB, free: 3.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.4475, allocations: 25.7 kB / 495.2 MB, free: 3.562 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.4476, allocations: 207.5 kB / 495.4 MB, free: 3.355 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.4477, allocations: 31.55 kB / 495.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.4477, allocations: 4 kB / 495.4 MB, free: 3.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4478, allocations: 338.8 kB / 495.7 MB, free: 2.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.4482, allocations: 120.1 kB / 495.8 MB, free: 2.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/0.4486, allocations: 224.6 kB / 496.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/0.4493, allocations: 358.7 kB / 496.4 MB, free: 2.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4493, allocations: 0 / 496.4 MB, free: 2.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009194/0.4502, allocations: 435.7 kB / 496.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.4502, allocations: 33.7 kB / 496.9 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.4503, allocations: 4 kB / 496.9 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001583/0.4504, allocations: 36.77 kB / 496.9 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.4507, allocations: 71.98 kB / 497 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009872/0.4517, allocations: 1.304 MB / 498.3 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.452, allocations: 59.66 kB / 498.3 MB, free: 96 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.4521, allocations: 16 kB / 498.4 MB, free: 80 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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.0001607/0.4522, allocations: 149.8 kB / 498.5 MB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.4523, allocations: 35.61 kB / 498.5 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.454e-05/0.4524, allocations: 26.61 kB / 498.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4524, allocations: 0 / 498.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.4524, allocations: 0 / 498.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4524, allocations: 0 / 498.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.4528, allocations: 455.2 kB / 499 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4528, allocations: 3.938 kB / 499 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.453, allocations: 40 kB / 499.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.39e-05/0.4531, allocations: 24.84 kB / 499.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.4531, allocations: 3.984 kB / 499.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009556/0.4541, allocations: 1.304 MB / 0.4887 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.4541, allocations: 0 / 0.4887 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006981/0.4548, allocations: 302.4 kB / 0.4889 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.4549, allocations: 112.7 kB / 0.4891 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.455, allocations: 8 kB / 0.4891 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.4552, allocations: 32.06 kB / 0.4891 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.4553, allocations: 23.91 kB / 0.4891 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.4553, allocations: 0 / 0.4891 GB, free: 13.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00024/0.4555, allocations: 231.1 kB / 0.4893 GB, free: 13.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4556, allocations: 4 kB / 0.4893 GB, free: 13.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000341/0.4559, allocations: 67.84 kB / 0.4894 GB, free: 13.04 MB / 378.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 (9): * Single equations (assignments): 6 * 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.0001522/0.4561, allocations: 119.1 kB / 0.4895 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009367/0.457, allocations: 442 kB / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.457, allocations: 0 / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.4575, allocations: 231.4 kB / 0.4902 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.4579, allocations: 50.97 kB / 0.4902 GB, free: 12.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009449/0.4588, allocations: 0.5539 MB / 0.4908 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.4591, allocations: 0.7521 MB / 0.4915 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.4593, allocations: 34.97 kB / 0.4915 GB, free: 10.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.048e-05/0.4594, allocations: 19.44 kB / 0.4915 GB, free: 10.76 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4594, allocations: 3.938 kB / 0.4915 GB, free: 10.75 MB / 378.7 MB Notification: Performance of Templates: time 0.00644/0.4658, allocations: 2.898 MB / 0.4944 GB, free: 7.887 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches