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.001343/0.001343, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0008498/0.0008497, allocations: 88.86 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2564, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002423/0.2589, allocations: 2.415 MB / 377.5 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.26, allocations: 0.7089 MB / 378.2 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2601, allocations: 5.25 kB / 378.2 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.2603, allocations: 36.53 kB / 378.3 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.2604, allocations: 75.92 kB / 378.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.2607, allocations: 80.89 kB / 378.4 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.261, allocations: 366.8 kB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.2612, allocations: 118.5 kB / 378.9 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.2614, allocations: 119.3 kB / 379 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.2616, allocations: 145.1 kB / 379.1 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.876e-05/0.2616, allocations: 18.12 kB / 379.2 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.024e-05/0.2617, allocations: 19.19 kB / 379.2 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.2617, allocations: 62.83 kB / 379.2 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.2619, allocations: 167.3 kB / 379.4 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.2621, allocations: 297.9 kB / 379.7 MB, free: 41.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2621, allocations: 0 / 379.7 MB, free: 41.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2621, allocations: 4 kB / 379.7 MB, free: 41.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2621, allocations: 1.031 kB / 379.7 MB, free: 41.91 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.001091/0.2632, allocations: 0.6436 MB / 380.4 MB, free: 41.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2633, allocations: 9.781 kB / 380.4 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.039e-05/0.2634, allocations: 37.22 kB / 380.4 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.2637, allocations: 291.7 kB / 380.7 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2637, allocations: 23 kB / 380.7 MB, free: 41.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.2637, allocations: 25.72 kB / 380.7 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006167/0.2644, allocations: 303.9 kB / 381 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.2644, allocations: 0 / 381 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.2644, allocations: 10.59 kB / 381 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2644, allocations: 5.656 kB / 381 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007682/0.2652, allocations: 319.1 kB / 381.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.2667, allocations: 1.077 MB / 382.4 MB, free: 39.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/0.2674, allocations: 239.8 kB / 382.7 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.2677, allocations: 104.8 kB / 382.8 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.2677, allocations: 1.406 kB / 382.8 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004052/0.2682, allocations: 164.8 kB / 382.9 MB, free: 39.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.2682, allocations: 1.312 kB / 382.9 MB, free: 39.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001108/0.2693, allocations: 449.8 kB / 383.4 MB, free: 39.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.2693, allocations: 84.75 kB / 383.5 MB, free: 39.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.2697, allocations: 321.2 kB / 383.8 MB, free: 38.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2697, allocations: 31.05 kB / 383.8 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.135e-05/0.2698, allocations: 201.9 kB / 384 MB, free: 38.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.2698, allocations: 44.19 kB / 384 MB, free: 38.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.61e-05/0.2698, allocations: 6.156 kB / 384 MB, free: 38.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.723e-05/0.2699, allocations: 335.8 kB / 384.4 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.2702, allocations: 108.1 kB / 384.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.2706, allocations: 215.7 kB / 384.7 MB, free: 38.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005903/0.2712, allocations: 347.6 kB / 385 MB, free: 37.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2712, allocations: 1.219 kB / 385 MB, free: 37.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008242/0.272, allocations: 418.1 kB / 385.4 MB, free: 37.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.757e-05/0.2721, allocations: 227.3 kB / 385.7 MB, free: 37.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2721, allocations: 3.031 kB / 385.7 MB, free: 37.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.2723, allocations: 29.09 kB / 385.7 MB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.2726, allocations: 77.56 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007096/0.2733, allocations: 1.307 MB / 387.1 MB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.2736, allocations: 59.62 kB / 387.1 MB, free: 35.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.2736, allocations: 18.92 kB / 387.1 MB, free: 35.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.2737, allocations: 4.281 kB / 387.2 MB, free: 35.9 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006708/0.2743, allocations: 347.3 kB / 387.5 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2743, allocations: 4 kB / 387.5 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.21e-05/0.2744, allocations: 29.06 kB / 387.5 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.2746, allocations: 63.89 kB / 387.6 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005396/0.2752, allocations: 1.28 MB / 388.9 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.2754, allocations: 55.64 kB / 388.9 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.2755, allocations: 16 kB / 388.9 MB, free: 34.11 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.0001299/0.2756, allocations: 225.1 kB / 389.2 MB, free: 33.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.2756, allocations: 27.72 kB / 389.2 MB, free: 33.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.2757, allocations: 29.89 kB / 389.2 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2757, allocations: 0 / 389.2 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2757, allocations: 3.938 kB / 389.2 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2757, allocations: 0 / 389.2 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.276, allocations: 451.1 kB / 389.7 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.276, allocations: 8.031 kB / 389.7 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.2762, allocations: 35.97 kB / 389.7 MB, free: 33.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.358e-05/0.2763, allocations: 28.78 kB / 389.7 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2763, allocations: 3.984 kB / 389.7 MB, free: 33.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005724/0.2769, allocations: 1.292 MB / 391 MB, free: 31.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2769, allocations: 8.188 kB / 391 MB, free: 31.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.2775, allocations: 294.2 kB / 391.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.2776, allocations: 112.8 kB / 391.4 MB, free: 31.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.2777, allocations: 3.984 kB / 391.4 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.2779, allocations: 27.97 kB / 391.5 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.2779, allocations: 19.92 kB / 391.5 MB, free: 31.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.278, allocations: 11.98 kB / 391.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000175/0.2781, allocations: 231 kB / 391.7 MB, free: 31.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2782, allocations: 0 / 391.7 MB, free: 31.08 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004653/0.2786, allocations: 123.8 kB / 391.8 MB, free: 30.96 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.0001036/0.2787, allocations: 99.25 kB / 391.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.2799, allocations: 0.7379 MB / 392.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2799, allocations: 0 / 392.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.2803, allocations: 235.3 kB / 392.9 MB, free: 29.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.2806, allocations: 44.61 kB / 392.9 MB, free: 29.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007467/0.2814, allocations: 0.5831 MB / 393.5 MB, free: 29.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.2815, allocations: 0.7561 MB / 394.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.069e-05/0.2816, allocations: 31.42 kB / 394.3 MB, free: 28.35 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2816, allocations: 0 / 394.3 MB, free: 28.35 MB / 298.7 MB Notification: Performance of Templates: time 0.004832/0.2865, allocations: 4.615 MB / 398.9 MB, free: 23.75 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/jenkins/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