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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001641/0.001641, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 71.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2687, allocations: 50.53 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004241/0.273, allocations: 2.908 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2743, allocations: 0.7245 MB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.2745, allocations: 7.938 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.2747, allocations: 51.5 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.2749, allocations: 99.19 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.2752, allocations: 107.8 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004345/0.2756, allocations: 398.5 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.2759, allocations: 135.9 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.2761, allocations: 147.4 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.2763, allocations: 175.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.2764, allocations: 36 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.293e-05/0.2764, allocations: 36 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.2765, allocations: 79.73 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.2767, allocations: 171.1 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.2771, allocations: 397.4 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.2771, allocations: 0 / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2771, allocations: 0 / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.2771, allocations: 0 / 414.2 MB, free: 12.06 MB / 334.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.001374/0.2785, allocations: 0.6961 MB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2786, allocations: 8.031 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.102e-05/0.2786, allocations: 62.72 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.2787, allocations: 36.7 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.2792, allocations: 299.8 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.2792, allocations: 16.94 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.2793, allocations: 24.38 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007104/0.28, allocations: 323.7 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.28, allocations: 4 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.28, allocations: 12 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.2801, allocations: 8 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007508/0.2808, allocations: 274 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.2826, allocations: 1.146 MB / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007555/0.2834, allocations: 202.5 kB / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.2837, allocations: 88.78 kB / 417.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.2837, allocations: 8 kB / 417.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004127/0.2842, allocations: 153.1 kB / 417.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.2842, allocations: 0 / 417.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001233/0.2854, allocations: 415.2 kB / 418 MB, free: 8.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.2855, allocations: 85.05 kB / 418 MB, free: 7.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.2858, allocations: 332.5 kB / 418.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.2859, allocations: 25.7 kB / 418.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.286, allocations: 215.9 kB / 418.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.2861, allocations: 39.72 kB / 418.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.941e-05/0.2862, allocations: 53.89 kB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2863, allocations: 338.8 kB / 419 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.2867, allocations: 100.1 kB / 419.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/0.2871, allocations: 215 kB / 419.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007186/0.2878, allocations: 331.9 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.2878, allocations: 0 / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009265/0.2887, allocations: 403.8 kB / 420.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.2888, allocations: 36.67 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2888, allocations: 4 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.289, allocations: 32.83 kB / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.2892, allocations: 64.05 kB / 420.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.2904, allocations: 1.402 MB / 421.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.2907, allocations: 51.75 kB / 421.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.2907, allocations: 20.36 kB / 421.7 MB, free: 4.035 MB / 334.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.0001548/0.2909, allocations: 149.7 kB / 421.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.291, allocations: 31.88 kB / 421.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.297e-05/0.291, allocations: 30.61 kB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.291, allocations: 7.922 kB / 421.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.291, allocations: 7.938 kB / 421.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.291, allocations: 0 / 421.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004567/0.2915, allocations: 447.3 kB / 422.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2915, allocations: 0 / 422.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.2917, allocations: 32 kB / 422.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001215/0.2918, allocations: 36.7 kB / 422.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.2918, allocations: 3.938 kB / 422.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.2929, allocations: 1.387 MB / 423.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2929, allocations: 0 / 423.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/0.2936, allocations: 282.4 kB / 424.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.2937, allocations: 104.9 kB / 424.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.2938, allocations: 8 kB / 424.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.294, allocations: 23.97 kB / 424.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/0.2941, allocations: 15.92 kB / 424.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.2941, allocations: 11.98 kB / 424.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.2943, allocations: 227.1 kB / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2943, allocations: 0 / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.2947, allocations: 71.89 kB / 424.5 MB, free: 0.9375 MB / 334.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.001042/0.2957, allocations: 0.809 MB / 425.3 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009525/0.2967, allocations: 410.1 kB / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2967, allocations: 0 / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004605/0.2972, allocations: 219.5 kB / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.2975, allocations: 56.36 kB / 426 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004708/0.3022, allocations: 3.151 MB / 429.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.3026, allocations: 0.7596 MB / 429.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.3027, allocations: 34.97 kB / 429.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.3029, allocations: 87.41 kB / 430 MB, free: 11.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3029, allocations: 0 / 430 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.3346, allocations: 6.077 MB / 436.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.964/10.3, allocations: 8.875 kB / 436.1 MB, free: 5.199 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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