Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 113.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 51.92 kB / 377.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2957, allocations: 53.37 MB / 431.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004352/0.3, allocations: 2.924 MB / 434.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.3014, allocations: 0.7479 MB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.3016, allocations: 7.938 kB / 434.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.3018, allocations: 47.5 kB / 434.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.302, allocations: 103.2 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.3023, allocations: 111.8 kB / 435.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004428/0.3027, allocations: 394.5 kB / 435.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.3029, allocations: 92.47 kB / 435.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.3031, allocations: 155.4 kB / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.3033, allocations: 175.2 kB / 435.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.68e-05/0.3034, allocations: 36 kB / 435.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.3035, allocations: 43.94 kB / 436 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.386e-05/0.3035, allocations: 79.69 kB / 436.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.3037, allocations: 175.1 kB / 436.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.3042, allocations: 394.8 kB / 436.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3042, allocations: 0 / 436.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3042, allocations: 0 / 436.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3042, allocations: 0 / 436.6 MB, free: 1.359 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.001338/0.3055, allocations: 0.6091 MB / 437.2 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.3056, allocations: 12.03 kB / 437.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.3056, allocations: 62.72 kB / 437.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.108e-05/0.3057, allocations: 36.7 kB / 437.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.3061, allocations: 237.9 kB / 437.6 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.3062, allocations: 20.88 kB / 437.6 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.3062, allocations: 24.38 kB / 437.6 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006964/0.3069, allocations: 322.8 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3069, allocations: 0 / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.3069, allocations: 12 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.3069, allocations: 4 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007621/0.3077, allocations: 281.7 kB / 438.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.3096, allocations: 1.095 MB / 439.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007891/0.3104, allocations: 198.6 kB / 439.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.3107, allocations: 88.78 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3107, allocations: 3.984 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004717/0.3112, allocations: 165.1 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.3112, allocations: 0 / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001211/0.3124, allocations: 338.3 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.3125, allocations: 81.11 kB / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.3129, allocations: 324.5 kB / 440.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3129, allocations: 29.8 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3131, allocations: 215.8 kB / 440.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.3131, allocations: 35.73 kB / 440.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-05/0.3132, allocations: 57.89 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3133, allocations: 338.8 kB / 441.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.3137, allocations: 96.14 kB / 441.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.3141, allocations: 215.7 kB / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006948/0.3148, allocations: 335.6 kB / 441.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3148, allocations: 4 kB / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009346/0.3157, allocations: 403.8 kB / 442.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.3157, allocations: 33.7 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3158, allocations: 0 / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.316, allocations: 36.83 kB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3162, allocations: 64.05 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.3174, allocations: 1.303 MB / 443.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003286/0.3177, allocations: 55.7 kB / 443.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.3178, allocations: 19.98 kB / 443.7 MB, free: 9.777 MB / 350.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.0001586/0.3179, allocations: 151.5 kB / 443.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.318, allocations: 27.81 kB / 443.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.741e-05/0.318, allocations: 30.61 kB / 443.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.318, allocations: 0 / 443.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.318, allocations: 3.938 kB / 443.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.318, allocations: 0 / 443.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004628/0.3185, allocations: 422.3 kB / 444.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3185, allocations: 0 / 444.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.3187, allocations: 39.94 kB / 444.4 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.765e-05/0.3188, allocations: 32.77 kB / 444.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3188, allocations: 4 kB / 444.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.3198, allocations: 1.287 MB / 445.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3198, allocations: 0 / 445.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007166/0.3205, allocations: 274.6 kB / 445.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.3205, allocations: 27.84 kB / 446 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.3206, allocations: 7.984 kB / 446 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.3208, allocations: 31.95 kB / 446 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.3209, allocations: 15.92 kB / 446 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.3209, allocations: 8.078 kB / 446 MB, free: 7.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002585/0.3211, allocations: 235 kB / 446.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3211, allocations: 0 / 446.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.3215, allocations: 71.89 kB / 446.3 MB, free: 6.934 MB / 350.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.001024/0.3225, allocations: 0.809 MB / 447.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009499/0.3234, allocations: 401.7 kB / 447.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3234, allocations: 1 kB / 447.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.3239, allocations: 214.6 kB / 447.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.3242, allocations: 45.61 kB / 447.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/0.329, allocations: 3.156 MB / 450.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.3294, allocations: 0.7518 MB / 451.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.3295, allocations: 34.97 kB / 451.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.3296, allocations: 87.41 kB / 451.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3296, allocations: 0 / 451.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.3656, allocations: 6.31 MB / 458.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.62, allocations: 3.188 kB / 458.1 MB, free: 11.01 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.out.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.068279785999039]