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.001171/0.001171, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.84 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004008/0.1077, allocations: 2.902 MB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1089, allocations: 0.7401 MB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.1091, allocations: 4 kB / 362.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.1092, allocations: 55.44 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.1094, allocations: 99.19 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.1097, allocations: 111.7 kB / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003748/0.1101, allocations: 390.5 kB / 363.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.1103, allocations: 139.9 kB / 363.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.1105, allocations: 155.3 kB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.1107, allocations: 171.3 kB / 363.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.293e-05/0.1108, allocations: 39.94 kB / 363.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.745e-05/0.1108, allocations: 36 kB / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.464e-05/0.1109, allocations: 71.77 kB / 363.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.111, allocations: 175.1 kB / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.1114, allocations: 394.7 kB / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1114, allocations: 0 / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1114, allocations: 0 / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1114, allocations: 0 / 364.3 MB, free: 7.844 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.001247/0.1127, allocations: 0.6885 MB / 365 MB, free: 7.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1127, allocations: 8.031 kB / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.1128, allocations: 32.56 kB / 365.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.1132, allocations: 295.6 kB / 365.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.1132, allocations: 16.94 kB / 365.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.1133, allocations: 28.38 kB / 365.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006378/0.1139, allocations: 327.9 kB / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1139, allocations: 0 / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.114, allocations: 8 kB / 365.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-06/0.114, allocations: 8 kB / 365.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007304/0.1147, allocations: 278 kB / 366 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.1163, allocations: 1.134 MB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000736/0.1171, allocations: 210.5 kB / 367.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.1174, allocations: 84.78 kB / 367.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1174, allocations: 4 kB / 367.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/0.1178, allocations: 165 kB / 367.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.1178, allocations: 0 / 367.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001159/0.119, allocations: 415 kB / 368 MB, free: 3.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.119, allocations: 81.14 kB / 368.1 MB, free: 3.828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.1194, allocations: 328.5 kB / 368.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.1194, allocations: 29.64 kB / 368.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1195, allocations: 219.4 kB / 368.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.1196, allocations: 31.55 kB / 368.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.652e-05/0.1197, allocations: 49.94 kB / 368.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1198, allocations: 334.8 kB / 369.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.1201, allocations: 108.1 kB / 369.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.1205, allocations: 204.6 kB / 369.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/0.1211, allocations: 331.9 kB / 369.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1211, allocations: 0 / 369.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008665/0.122, allocations: 403.2 kB / 370.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.1221, allocations: 41.75 kB / 370.1 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1221, allocations: 4 kB / 370.1 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.1222, allocations: 28.84 kB / 370.2 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.1225, allocations: 63.89 kB / 370.2 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.174/0.2965, allocations: 1.395 MB / 371.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006188/0.2972, allocations: 54.77 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.2972, allocations: 11.8 kB / 371.7 MB, free: 20.05 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.0002054/0.2974, allocations: 150.7 kB / 371.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.8e-05/0.2975, allocations: 35.28 kB / 371.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.498e-05/0.2976, allocations: 27.89 kB / 371.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2976, allocations: 1.312 kB / 371.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2976, allocations: 4.922 kB / 371.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2976, allocations: 1.391 kB / 371.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005835/0.2982, allocations: 456.6 kB / 372.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.2983, allocations: 0.75 kB / 372.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.2985, allocations: 28.83 kB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001626/0.2987, allocations: 29.48 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.2987, allocations: 7.312 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.2998, allocations: 1.402 MB / 373.8 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2998, allocations: 0.7812 kB / 373.8 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3009, allocations: 267.1 kB / 374.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.126e-05/0.301, allocations: 116 kB / 374.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.3011, allocations: 1.531 kB / 374.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003381/0.3014, allocations: 27.56 kB / 374.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3015, allocations: 17.55 kB / 374.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.3016, allocations: 5.328 kB / 374.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003956/0.302, allocations: 231.8 kB / 374.5 MB, free: 18.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.302, allocations: 0.5625 kB / 374.5 MB, free: 18.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000623/0.3026, allocations: 68.98 kB / 374.5 MB, free: 18.03 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.0001983/0.3028, allocations: 104.8 kB / 374.6 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.3042, allocations: 415.2 kB / 375 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3042, allocations: 0.6562 kB / 375 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006614/0.3049, allocations: 218.4 kB / 375.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.3054, allocations: 49.84 kB / 375.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.3071, allocations: 484.6 kB / 375.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3075, allocations: 0.754 MB / 376.5 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.3077, allocations: 31.67 kB / 376.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.3078, allocations: 23.66 kB / 376.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3079, allocations: 0 / 376.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01177/0.3196, allocations: 3.256 MB / 379.8 MB, free: 16.55 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/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