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.001426/0.001426, allocations: 123 kB / 17.79 MB, free: 5.246 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.001477/0.001477, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.424/1.424, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001478/0.001478, allocations: 51.92 kB / 373 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 53.33 MB / 426.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004341/0.1075, allocations: 2.911 MB / 429.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.1088, allocations: 0.7401 MB / 430 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.109, allocations: 7.938 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.1091, allocations: 47.5 kB / 430.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.1095, allocations: 103.2 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.1098, allocations: 111.8 kB / 430.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.1102, allocations: 386.5 kB / 430.7 MB, free: 424 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1104, allocations: 95.94 kB / 430.7 MB, free: 324 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.1106, allocations: 155.4 kB / 430.9 MB, free: 168 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1929/0.3035, allocations: 168.9 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.3036, allocations: 34.75 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.3037, allocations: 36.88 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.133e-05/0.3038, allocations: 74.36 kB / 431.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.304, allocations: 171.4 kB / 431.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.3044, allocations: 395.9 kB / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3044, allocations: 0 / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3044, allocations: 1.344 kB / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3045, allocations: 3.312 kB / 431.8 MB, free: 7.816 MB / 350.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.001246/0.3057, allocations: 0.6873 MB / 432.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3057, allocations: 9.688 kB / 432.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.027e-05/0.3058, allocations: 60.36 kB / 432.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.995e-05/0.3059, allocations: 40.7 kB / 432.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.3062, allocations: 300.6 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.3062, allocations: 20.19 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.411e-05/0.3063, allocations: 24.81 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006607/0.307, allocations: 327.5 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.307, allocations: 1 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.307, allocations: 9.469 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.307, allocations: 7.062 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00075/0.3077, allocations: 273.8 kB / 433.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3093, allocations: 1.139 MB / 434.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.3101, allocations: 205.2 kB / 434.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.3104, allocations: 82.02 kB / 434.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3104, allocations: 6.859 kB / 434.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004211/0.3109, allocations: 155.3 kB / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.3109, allocations: 0 / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001267/0.3121, allocations: 418.3 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.3122, allocations: 80.16 kB / 435.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003396/0.3125, allocations: 327.6 kB / 435.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.3125, allocations: 30.67 kB / 435.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3126, allocations: 210.1 kB / 436.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.3126, allocations: 36.45 kB / 436.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.914e-05/0.3127, allocations: 61.75 kB / 436.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.572e-05/0.3128, allocations: 342.3 kB / 436.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.3132, allocations: 100.9 kB / 436.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.3136, allocations: 204.1 kB / 436.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.3142, allocations: 330.8 kB / 437.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3142, allocations: 1.875 kB / 437.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009659/0.3152, allocations: 407.4 kB / 437.6 MB, free: 5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.3152, allocations: 37.89 kB / 437.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3153, allocations: 4.688 kB / 437.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.3154, allocations: 29.58 kB / 437.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.3157, allocations: 69.95 kB / 437.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008036/0.3165, allocations: 1.404 MB / 439.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.3169, allocations: 59.81 kB / 439.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.3169, allocations: 15.69 kB / 439.2 MB, free: 3.578 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.0001305/0.317, allocations: 142.4 kB / 439.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.3171, allocations: 36.73 kB / 439.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.117e-05/0.3171, allocations: 25.33 kB / 439.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3171, allocations: 2.312 kB / 439.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3172, allocations: 5.094 kB / 439.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3172, allocations: 0.6562 kB / 439.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004156/0.3176, allocations: 452 kB / 439.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3176, allocations: 0 / 439.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3178, allocations: 33.78 kB / 439.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001017/0.3179, allocations: 32.28 kB / 439.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.3179, allocations: 5.766 kB / 439.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006753/0.3186, allocations: 1.392 MB / 441.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3186, allocations: 5 kB / 441.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.3193, allocations: 276 kB / 441.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.3194, allocations: 110.9 kB / 441.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.3194, allocations: 10.97 kB / 441.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3196, allocations: 26.78 kB / 441.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.3197, allocations: 22.77 kB / 441.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.3197, allocations: 3.312 kB / 441.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.3199, allocations: 230.6 kB / 442 MB, free: 1.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3199, allocations: 0 / 442 MB, free: 1.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.3203, allocations: 72.77 kB / 442 MB, free: 1.434 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.0009509/0.3212, allocations: 0.8104 MB / 442.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3223, allocations: 395.7 kB / 443.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3223, allocations: 1 kB / 443.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004675/0.3227, allocations: 222.3 kB / 443.5 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3231, allocations: 39.47 kB / 443.5 MB, free: 404 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.3283, allocations: 3.144 MB / 446.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.3287, allocations: 0.7542 MB / 447.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.3288, allocations: 35.22 kB / 447.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.329, allocations: 87.41 kB / 447.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.329, allocations: 288 / 447.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.3634, allocations: 6.145 MB / 453.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.943/10.31, allocations: 6.297 kB / 453.7 MB, free: 12.54 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.770237763004843]