Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 112.2 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 47.92 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2723, allocations: 52.19 MB / 422.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004246/0.2766, allocations: 2.91 MB / 425.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.2779, allocations: 0.705 MB / 426.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.278, allocations: 7.938 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2782, allocations: 55.44 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.2784, allocations: 103.2 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.2787, allocations: 111.8 kB / 426.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/0.2792, allocations: 386.5 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.2794, allocations: 100.5 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.2796, allocations: 159.4 kB / 427.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.2798, allocations: 171.2 kB / 427.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.2798, allocations: 36 kB / 427.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.2799, allocations: 36 kB / 427.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.799e-05/0.28, allocations: 87.67 kB / 427.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.2801, allocations: 159.3 kB / 427.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.2806, allocations: 402.8 kB / 428.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2806, allocations: 0 / 428.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2806, allocations: 0 / 428.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2806, allocations: 0 / 428.1 MB, free: 9.195 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.001342/0.2819, allocations: 0.6169 MB / 428.7 MB, free: 8.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.282, allocations: 12.03 kB / 428.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.401e-05/0.282, allocations: 58.73 kB / 428.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.913e-05/0.2821, allocations: 32.75 kB / 428.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.2825, allocations: 249.8 kB / 429 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.2826, allocations: 20.88 kB / 429 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.2826, allocations: 28.36 kB / 429.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.2833, allocations: 314.8 kB / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2833, allocations: 0 / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.2833, allocations: 16 kB / 429.4 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.2833, allocations: 4 kB / 429.4 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007739/0.2841, allocations: 273.8 kB / 429.7 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.286, allocations: 1.095 MB / 430.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.2868, allocations: 198.5 kB / 431 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.2871, allocations: 84.8 kB / 431 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.2872, allocations: 4 kB / 431 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/0.2876, allocations: 169.1 kB / 431.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.552e-06/0.2876, allocations: 0 / 431.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001237/0.2889, allocations: 330.1 kB / 431.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.2889, allocations: 81.11 kB / 431.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.2893, allocations: 324.5 kB / 431.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.2893, allocations: 33.7 kB / 432 MB, free: 5.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.2895, allocations: 215.8 kB / 432.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.2895, allocations: 31.73 kB / 432.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-05/0.2896, allocations: 57.89 kB / 432.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2898, allocations: 338.8 kB / 432.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.2901, allocations: 100.1 kB / 432.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.2905, allocations: 211.6 kB / 432.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007224/0.2913, allocations: 335.2 kB / 433.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2913, allocations: 4 kB / 433.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009711/0.2922, allocations: 407.8 kB / 433.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.2923, allocations: 40.98 kB / 433.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2923, allocations: 4 kB / 433.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001902/0.2925, allocations: 32.83 kB / 433.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.2928, allocations: 64.05 kB / 433.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.2939, allocations: 1.303 MB / 435.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.2943, allocations: 55.7 kB / 435.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.2943, allocations: 12 kB / 435.1 MB, free: 1.617 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.0001741/0.2945, allocations: 149.7 kB / 435.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.2945, allocations: 31.91 kB / 435.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.2946, allocations: 26.61 kB / 435.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2946, allocations: 0 / 435.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2946, allocations: 3.938 kB / 435.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2946, allocations: 4 kB / 435.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004943/0.2951, allocations: 422.3 kB / 435.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2951, allocations: 4 kB / 435.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.2953, allocations: 35.94 kB / 435.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.2954, allocations: 28.78 kB / 435.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.2954, allocations: 384 / 435.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.2965, allocations: 1.296 MB / 437.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.2965, allocations: 4.031 kB / 437.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007607/0.2972, allocations: 270.5 kB / 437.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.32e-05/0.2973, allocations: 31.8 kB / 437.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.2973, allocations: 4 kB / 437.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.2976, allocations: 23.97 kB / 437.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/0.2976, allocations: 23.91 kB / 437.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2976, allocations: 4 kB / 437.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002552/0.2979, allocations: 227.1 kB / 437.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2979, allocations: 3.938 kB / 437.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.2983, allocations: 71.89 kB / 437.8 MB, free: 14.78 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.001119/0.2994, allocations: 0.8168 MB / 438.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.3004, allocations: 402 kB / 439 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3004, allocations: 0 / 439 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004993/0.3009, allocations: 219.3 kB / 439.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.3013, allocations: 45.39 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005185/0.3065, allocations: 3.148 MB / 442.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.3068, allocations: 0.7518 MB / 443.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.307, allocations: 38.97 kB / 443.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3071, allocations: 83.41 kB / 443.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3071, allocations: 0 / 443.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/0.343, allocations: 6.3 MB / 449.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.8, allocations: 3.938 kB / 449.6 MB, free: 2.855 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.265936125000735]