Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009624/0.0009626, allocations: 199.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007723/0.0007723, allocations: 99.84 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002032/0.0002033, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.204, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09169/0.2957, allocations: 82.48 MB / 491.2 MB, free: 9.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.296, allocations: 79.95 kB / 491.2 MB, free: 9.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01733/0.3134, allocations: 6.314 MB / 497.6 MB, free: 2.676 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3134, allocations: 0 / 497.6 MB, free: 2.676 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.3134, allocations: 12 kB / 497.6 MB, free: 2.664 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.00109/0.3145, allocations: 0.6463 MB / 498.2 MB, free: 1.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3145, allocations: 8.031 kB / 498.2 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.952e-05/0.3146, allocations: 32.56 kB / 498.2 MB, free: 1.922 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.315, allocations: 296.2 kB / 498.5 MB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.315, allocations: 24.94 kB / 498.6 MB, free: 1.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.3151, allocations: 28.38 kB / 498.6 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.3158, allocations: 336.1 kB / 498.9 MB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.3158, allocations: 192 / 498.9 MB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.3158, allocations: 11.94 kB / 498.9 MB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3159, allocations: 8 kB / 498.9 MB, free: 1.188 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000778/0.3166, allocations: 298.1 kB / 499.2 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.3185, allocations: 1.223 MB / 0.4887 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007549/0.3193, allocations: 242.5 kB / 0.489 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.3196, allocations: 100.8 kB / 0.489 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.3196, allocations: 0 / 0.489 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.32, allocations: 178.2 kB / 0.4892 GB, free: 15.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.3201, allocations: 0 / 0.4892 GB, free: 15.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.001223/0.3213, allocations: 455 kB / 0.4897 GB, free: 14.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.3214, allocations: 89.08 kB / 0.4897 GB, free: 14.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.3217, allocations: 320.5 kB / 0.49 GB, free: 14.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3217, allocations: 29.7 kB / 0.4901 GB, free: 14.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.3219, allocations: 207.5 kB / 0.4903 GB, free: 13.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.3219, allocations: 31.61 kB / 0.4903 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.3219, allocations: 4 kB / 0.4903 GB, free: 13.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3221, allocations: 338.8 kB / 0.4906 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/0.3224, allocations: 116.2 kB / 0.4907 GB, free: 13.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.3228, allocations: 226.9 kB / 0.491 GB, free: 13.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006898/0.3235, allocations: 367.4 kB / 0.4913 GB, free: 12.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3235, allocations: 4 kB / 0.4913 GB, free: 12.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009167/0.3244, allocations: 427.8 kB / 0.4917 GB, free: 12.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.602e-05/0.3245, allocations: 41.69 kB / 0.4918 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3245, allocations: 4 kB / 0.4918 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.3247, allocations: 28.84 kB / 0.4918 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3249, allocations: 75.97 kB / 0.4919 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009522/0.3259, allocations: 1.3 MB / 0.4931 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.3262, allocations: 55.66 kB / 0.4932 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.3263, allocations: 19.98 kB / 0.4932 GB, free: 10.62 MB / 378.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.0001484/0.3264, allocations: 153.8 kB / 0.4933 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.3265, allocations: 27.62 kB / 0.4934 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.3265, allocations: 30.61 kB / 0.4934 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3265, allocations: 0 / 0.4934 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3266, allocations: 8 kB / 0.4934 GB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3266, allocations: 3.984 kB / 0.4934 GB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004288/0.327, allocations: 455.1 kB / 0.4938 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.327, allocations: 0 / 0.4938 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3272, allocations: 35.97 kB / 0.4939 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-05/0.3273, allocations: 32.77 kB / 0.4939 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3273, allocations: 4.031 kB / 0.4939 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000871/0.3282, allocations: 1.304 MB / 0.4952 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3282, allocations: 0 / 0.4952 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.329, allocations: 306.6 kB / 0.4955 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-05/0.329, allocations: 108.7 kB / 0.4956 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3291, allocations: 4 kB / 0.4956 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.3293, allocations: 31.95 kB / 0.4956 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/0.3294, allocations: 15.98 kB / 0.4956 GB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.3294, allocations: 11.98 kB / 0.4956 GB, free: 7.867 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002259/0.3297, allocations: 227.1 kB / 0.4959 GB, free: 7.648 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3297, allocations: 4 kB / 0.4959 GB, free: 7.645 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.33, allocations: 67.84 kB / 0.4959 GB, free: 7.578 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.0001355/0.3301, allocations: 99.25 kB / 0.496 GB, free: 7.469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009409/0.3311, allocations: 440.2 kB / 0.4964 GB, free: 7.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3311, allocations: 3.938 kB / 0.4965 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.3315, allocations: 219.5 kB / 0.4967 GB, free: 6.785 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.3319, allocations: 53 kB / 0.4967 GB, free: 6.734 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009367/0.3328, allocations: 0.585 MB / 0.4973 GB, free: 6.113 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.3331, allocations: 0.7521 MB / 0.498 GB, free: 5.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.418e-05/0.3332, allocations: 27.7 kB / 0.498 GB, free: 5.309 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3332, allocations: 0 / 0.498 GB, free: 5.309 MB / 378.7 MB Notification: Performance of Templates: time 0.005945/0.3392, allocations: 4.597 MB / 0.5025 GB, free: 0.7305 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches