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.001035/0.001035, allocations: 175 kB / 13.63 MB, free: 1.684 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.334/1.334, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008298/0.0008298, allocations: 91.56 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.933e-05/1.936e-05, allocations: 7.984 kB / 343.8 MB, free: 4.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08454, allocations: 50.41 MB / 394.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2768/0.3614, allocations: 81.65 MB / 475.9 MB, free: 5.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.3616, allocations: 79.78 kB / 476 MB, free: 5.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01775/0.3794, allocations: 6.275 MB / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3794, allocations: 0 / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3794, allocations: 4 kB / 482.3 MB, free: 15.51 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.001025/0.3805, allocations: 0.5958 MB / 482.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3805, allocations: 12.03 kB / 482.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.095e-05/0.3806, allocations: 35.53 kB / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.381, allocations: 279.1 kB / 483.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.381, allocations: 24.48 kB / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.3811, allocations: 28 kB / 483.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.3815, allocations: 264.1 kB / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3816, allocations: 7.953 kB / 483.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.3816, allocations: 8 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3816, allocations: 8 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.382, allocations: 182.2 kB / 483.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.3839, allocations: 1.215 MB / 484.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.3842, allocations: 110.6 kB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.3843, allocations: 44.89 kB / 485.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.3843, allocations: 8 kB / 485.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002077/0.3845, allocations: 117.1 kB / 485.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.3846, allocations: 0 / 485.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003612/0.3849, allocations: 146.1 kB / 485.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.385, allocations: 85.05 kB / 485.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.3853, allocations: 294.7 kB / 485.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.3854, allocations: 25.7 kB / 485.7 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3855, allocations: 211.4 kB / 485.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.3855, allocations: 27.64 kB / 485.9 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/0.3856, allocations: 4 kB / 486 MB, free: 11.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3857, allocations: 346.8 kB / 486.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.3858, allocations: 56.23 kB / 486.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.386, allocations: 163 kB / 486.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.3862, allocations: 101.6 kB / 486.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3862, allocations: 0 / 486.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004832/0.3867, allocations: 303.9 kB / 486.9 MB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.3867, allocations: 33.7 kB / 486.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3867, allocations: 4 kB / 486.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.3869, allocations: 28.84 kB / 487 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.3872, allocations: 79.97 kB / 487 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.3883, allocations: 1.3 MB / 488.3 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.3887, allocations: 59.66 kB / 488.4 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.3887, allocations: 15.98 kB / 488.4 MB, free: 8.848 MB / 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 () * 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.0001133/0.3888, allocations: 134.4 kB / 488.5 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.3889, allocations: 31.62 kB / 488.6 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.074e-05/0.3889, allocations: 26.73 kB / 488.6 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3889, allocations: 4 kB / 488.6 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.3889, allocations: 0 / 488.6 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.389, allocations: 3.953 kB / 488.6 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.3894, allocations: 443.3 kB / 489 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3894, allocations: 0 / 489 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.3896, allocations: 44 kB / 489.1 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.441e-05/0.3897, allocations: 28.77 kB / 489.1 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3898, allocations: 4 kB / 489.1 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009377/0.3907, allocations: 1.3 MB / 490.4 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3907, allocations: 7.969 kB / 490.4 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.391, allocations: 200.2 kB / 490.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.751e-05/0.3911, allocations: 104.7 kB / 490.7 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.3911, allocations: 4 kB / 490.7 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.3914, allocations: 35.97 kB / 490.8 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.068e-05/0.3915, allocations: 19.97 kB / 490.8 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.3915, allocations: 4 kB / 490.8 MB, free: 6.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.3918, allocations: 226.2 kB / 491 MB, free: 6 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3918, allocations: 0 / 491 MB, free: 6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.3921, allocations: 63.94 kB / 491.1 MB, free: 5.938 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) * 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.0001871/0.3923, allocations: 107.2 kB / 491.2 MB, free: 5.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005226/0.3928, allocations: 329.7 kB / 491.5 MB, free: 5.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3928, allocations: 0 / 491.5 MB, free: 5.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.3931, allocations: 167.7 kB / 491.7 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.3933, allocations: 55.28 kB / 491.7 MB, free: 5.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005366/0.3939, allocations: 297.1 kB / 492 MB, free: 4.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3942, allocations: 0.7599 MB / 492.8 MB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.3944, allocations: 34.95 kB / 492.8 MB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.702e-05/0.3944, allocations: 23.44 kB / 492.8 MB, free: 4.094 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3944, allocations: 0 / 492.8 MB, free: 4.094 MB / 362.7 MB Notification: Performance of Templates: time 0.00631/0.4008, allocations: 2.876 MB / 495.7 MB, free: 1.254 MB / 362.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/jenkins/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