Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01071/0.01071, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.459/3.459, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001777/0.001777, allocations: 95.39 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006429/0.0006431, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7024/0.7031, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005324/0.7085, allocations: 2.318 MB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.7111, allocations: 0.7297 MB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00042/0.7116, allocations: 4.531 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.7118, allocations: 35.33 kB / 377.6 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005348/0.7123, allocations: 104 kB / 377.7 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.7129, allocations: 72.22 kB / 377.8 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000716/0.7136, allocations: 252.9 kB / 378 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.714, allocations: 103.8 kB / 378.1 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.7143, allocations: 118.9 kB / 378.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.7147, allocations: 149.2 kB / 378.4 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.706e-05/0.7148, allocations: 19.34 kB / 378.4 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.925e-05/0.7149, allocations: 17.12 kB / 378.4 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.723e-05/0.715, allocations: 56.08 kB / 378.5 MB, free: 42.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.7152, allocations: 83.11 kB / 378.6 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005526/0.7158, allocations: 302 kB / 378.9 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.7158, allocations: 0 / 378.9 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.948e-06/0.7158, allocations: 1.406 kB / 378.9 MB, free: 42.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.7158, allocations: 0 / 378.9 MB, free: 42.11 MB / 298.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.002603/0.7185, allocations: 0.6466 MB / 379.5 MB, free: 41.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.7185, allocations: 8.5 kB / 379.5 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.7187, allocations: 36.91 kB / 379.6 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000647/0.7194, allocations: 293.5 kB / 379.8 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.7195, allocations: 20.12 kB / 379.9 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.425e-05/0.7196, allocations: 24.34 kB / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.7213, allocations: 297.8 kB / 380.2 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.7213, allocations: 0 / 380.2 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.46e-05/0.7214, allocations: 10.28 kB / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.7215, allocations: 5.656 kB / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.7235, allocations: 318.4 kB / 380.5 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/0.7276, allocations: 1.079 MB / 381.6 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.7296, allocations: 251.5 kB / 381.8 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.7296, allocations: 2.688 kB / 381.8 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009424/0.7306, allocations: 165.5 kB / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 4.208e-06/0.7306, allocations: 0 / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.002795/0.7334, allocations: 450.9 kB / 382.4 MB, free: 39.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.7336, allocations: 83.42 kB / 382.5 MB, free: 39.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007768/0.7344, allocations: 325.4 kB / 382.8 MB, free: 39.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.7344, allocations: 31.59 kB / 382.9 MB, free: 39.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.7346, allocations: 250.2 kB / 383.1 MB, free: 38.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.7347, allocations: 41.28 kB / 383.2 MB, free: 38.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.7348, allocations: 5.094 kB / 383.2 MB, free: 38.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.944e-05/0.7349, allocations: 317 kB / 383.5 MB, free: 38.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008148/0.7357, allocations: 115.7 kB / 383.6 MB, free: 38.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009105/0.7366, allocations: 219.2 kB / 383.8 MB, free: 38.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008911/0.7376, allocations: 148.2 kB / 383.9 MB, free: 38.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.7376, allocations: 5.219 kB / 383.9 MB, free: 38.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002197/0.7398, allocations: 399.7 kB / 384.3 MB, free: 38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004617/0.7403, allocations: 1.422 MB / 385.8 MB, free: 36.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.7404, allocations: 3.844 kB / 385.8 MB, free: 36.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/0.7407, allocations: 41 kB / 385.8 MB, free: 36.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007177/0.7415, allocations: 64.64 kB / 385.9 MB, free: 36.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.7431, allocations: 1.315 MB / 387.2 MB, free: 35.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009417/0.7441, allocations: 59.84 kB / 387.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-05/0.7442, allocations: 10.41 kB / 387.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.7442, allocations: 3.719 kB / 387.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001936/0.7462, allocations: 352.2 kB / 387.6 MB, free: 34.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.7462, allocations: 4.188 kB / 387.6 MB, free: 34.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/0.7464, allocations: 25.22 kB / 387.6 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.747, allocations: 57 kB / 387.7 MB, free: 34.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.7485, allocations: 1.296 MB / 389 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.7491, allocations: 40.98 kB / 389 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.7492, allocations: 18.12 kB / 389 MB, free: 33.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0004041/0.7496, allocations: 220.9 kB / 389.2 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.7497, allocations: 27.16 kB / 389.3 MB, free: 33.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.7498, allocations: 29.98 kB / 389.3 MB, free: 33.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.7499, allocations: 2.406 kB / 389.3 MB, free: 33.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.7499, allocations: 3.953 kB / 389.3 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.7499, allocations: 1.281 kB / 389.3 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009037/0.7508, allocations: 450.6 kB / 389.8 MB, free: 32.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.7509, allocations: 1.125 kB / 389.8 MB, free: 32.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.7513, allocations: 33.69 kB / 389.8 MB, free: 32.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002497/0.7516, allocations: 33.22 kB / 389.8 MB, free: 32.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.7517, allocations: 8.938 kB / 389.8 MB, free: 32.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.7531, allocations: 1.315 MB / 391.1 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.7532, allocations: 4.031 kB / 391.1 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.7549, allocations: 304.2 kB / 391.4 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.7551, allocations: 108.7 kB / 391.5 MB, free: 30.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.7552, allocations: 4 kB / 391.6 MB, free: 30.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005438/0.7558, allocations: 27.97 kB / 391.6 MB, free: 30.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.756, allocations: 27.91 kB / 391.6 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/0.756, allocations: 4 kB / 391.6 MB, free: 30.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004699/0.7565, allocations: 227.1 kB / 391.8 MB, free: 30.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7565, allocations: 0 / 391.8 MB, free: 30.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0063/0.7628, allocations: 123.8 kB / 392 MB, free: 30.41 MB / 298.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 (10): * Single equations (assignments): 7 * 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.0002387/0.7632, allocations: 103.2 kB / 392.1 MB, free: 30.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003151/0.7663, allocations: 0.735 MB / 392.8 MB, free: 29.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.7664, allocations: 0 / 392.8 MB, free: 29.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009844/0.7674, allocations: 227.3 kB / 393 MB, free: 29.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.7681, allocations: 48.58 kB / 393.1 MB, free: 29.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006131/0.7743, allocations: 0.5759 MB / 393.6 MB, free: 28.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.7746, allocations: 0.7755 MB / 394.4 MB, free: 27.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.7749, allocations: 19.44 kB / 394.4 MB, free: 27.8 MB / 298.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7749, allocations: 4 kB / 394.4 MB, free: 27.8 MB / 298.7 MB Notification: Performance of Templates: time 0.02195/0.7969, allocations: 4.511 MB / 398.9 MB, free: 23.31 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches