Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.33 kB / 306.9 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004273/0.1072, allocations: 2.891 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.1085, allocations: 0.7401 MB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.1087, allocations: 4 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.1089, allocations: 51.5 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.1091, allocations: 95.19 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.1095, allocations: 115.8 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004387/0.1099, allocations: 386.5 kB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.1102, allocations: 139.8 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.1104, allocations: 151.4 kB / 362 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.1107, allocations: 179.2 kB / 362.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.934e-05/0.1108, allocations: 40 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.11e-05/0.1109, allocations: 36 kB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.754e-05/0.1109, allocations: 71.7 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.1112, allocations: 175.1 kB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004154/0.1116, allocations: 391 kB / 362.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1117, allocations: 0 / 362.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1117, allocations: 0 / 362.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1117, allocations: 0 / 362.9 MB, free: 8.617 MB / 302.1 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.001494/0.1132, allocations: 0.6846 MB / 363.6 MB, free: 7.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1132, allocations: 8.031 kB / 363.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.185e-05/0.1133, allocations: 36.56 kB / 363.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.1137, allocations: 283.6 kB / 363.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.1137, allocations: 24.88 kB / 363.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.1138, allocations: 28.38 kB / 364 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007097/0.1145, allocations: 323.9 kB / 364.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.1145, allocations: 0 / 364.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1146, allocations: 12 kB / 364.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.1146, allocations: 4 kB / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008038/0.1154, allocations: 274.1 kB / 364.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.1172, allocations: 1.134 MB / 365.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008512/0.1181, allocations: 210.5 kB / 365.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.1184, allocations: 92.73 kB / 366 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.1184, allocations: 7.969 kB / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005382/0.119, allocations: 169 kB / 366.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.119, allocations: 0 / 366.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001349/0.1204, allocations: 407.1 kB / 366.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.1204, allocations: 85.05 kB / 366.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.1208, allocations: 328.5 kB / 367 MB, free: 4.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1208, allocations: 33.73 kB / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.121, allocations: 207.5 kB / 367.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.121, allocations: 31.55 kB / 367.2 MB, free: 4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1211, allocations: 53.92 kB / 367.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1213, allocations: 338.8 kB / 367.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.1216, allocations: 104.2 kB / 367.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.1221, allocations: 204.6 kB / 367.9 MB, free: 3.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007693/0.1228, allocations: 335.9 kB / 368.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1228, allocations: 0 / 368.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009836/0.1238, allocations: 407.5 kB / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.1239, allocations: 36.98 kB / 368.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.1239, allocations: 4 kB / 368.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002025/0.1241, allocations: 29.09 kB / 368.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.1244, allocations: 71.88 kB / 368.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.1255, allocations: 1.406 MB / 370.2 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.1259, allocations: 55.75 kB / 370.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.1259, allocations: 8 kB / 370.3 MB, free: 0.6953 MB / 302.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.1261, allocations: 149.7 kB / 370.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.1261, allocations: 31.61 kB / 370.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.244e-05/0.1262, allocations: 30.98 kB / 370.5 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1262, allocations: 4 kB / 370.5 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1262, allocations: 3.938 kB / 370.5 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1262, allocations: 4 kB / 370.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.217/0.3432, allocations: 447.2 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.3433, allocations: 1.172 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.3436, allocations: 30.95 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.3438, allocations: 34.59 kB / 371 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/0.3438, allocations: 2.203 kB / 371 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008665/0.3447, allocations: 1.393 MB / 372.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3447, allocations: 2.75 kB / 372.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008348/0.3455, allocations: 274 kB / 372.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.895e-05/0.3456, allocations: 108.1 kB / 372.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.3457, allocations: 6.125 kB / 372.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.3459, allocations: 24.08 kB / 372.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.346, allocations: 22.03 kB / 372.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.346, allocations: 4.266 kB / 372.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.3463, allocations: 234.1 kB / 373 MB, free: 18.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3463, allocations: 0 / 373 MB, free: 18.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.3468, allocations: 67.3 kB / 373.1 MB, free: 18.71 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001716/0.3469, allocations: 102.3 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.348, allocations: 412.7 kB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.348, allocations: 0 / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004769/0.3485, allocations: 216.5 kB / 373.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.3489, allocations: 54.19 kB / 373.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.35, allocations: 488.2 kB / 374.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3502, allocations: 0.7538 MB / 375.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.3503, allocations: 35.06 kB / 375.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.3504, allocations: 24.56 kB / 375.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3504, allocations: 0 / 375.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of Templates: time 0.008854/0.3593, allocations: 3.251 MB / 378.4 MB, free: 17.23 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches