Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001428/0.001428, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001418/0.001418, allocations: 211 kB / 23.73 MB, free: 4.523 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.415/1.415, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.287, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004093/0.2911, allocations: 2.629 MB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.2924, allocations: 0.6388 MB / 434.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2925, allocations: 11.94 kB / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.2927, allocations: 47.5 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.2929, allocations: 99.12 kB / 434.5 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2931, allocations: 87.88 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.2936, allocations: 370.5 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.2938, allocations: 93.03 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.2939, allocations: 151.4 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.2941, allocations: 167.4 kB / 435.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.2942, allocations: 32 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.3e-05/0.2943, allocations: 36 kB / 435.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.043e-05/0.2943, allocations: 75.7 kB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.2945, allocations: 135.4 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004245/0.2949, allocations: 382.4 kB / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2949, allocations: 0 / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2949, allocations: 0 / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2949, allocations: 4 kB / 436 MB, free: 1.68 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001255/0.2962, allocations: 0.5897 MB / 436.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2962, allocations: 8.031 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.012e-05/0.2963, allocations: 62.72 kB / 436.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.791e-05/0.2964, allocations: 40.7 kB / 436.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.2967, allocations: 219 kB / 436.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.2968, allocations: 12.88 kB / 436.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.2968, allocations: 24.38 kB / 437 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007097/0.2975, allocations: 358 kB / 437.3 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2975, allocations: 0 / 437.3 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.2976, allocations: 15.98 kB / 437.3 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2976, allocations: 4 kB / 437.3 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007561/0.2983, allocations: 253.6 kB / 437.6 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.3, allocations: 0.9769 MB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007669/0.3008, allocations: 206.6 kB / 438.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.3011, allocations: 92.72 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3011, allocations: 0 / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.3016, allocations: 221.2 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.3016, allocations: 7.938 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001994/0.3036, allocations: 449.8 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.3037, allocations: 102.8 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.304, allocations: 289.8 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.304, allocations: 25.7 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.3042, allocations: 204 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.3042, allocations: 39.69 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.385e-05/0.3043, allocations: 57.83 kB / 440.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3045, allocations: 334.8 kB / 440.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.3048, allocations: 121.9 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004643/0.3053, allocations: 280 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006938/0.306, allocations: 313.3 kB / 441.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.306, allocations: 0 / 441.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001219/0.3072, allocations: 449.5 kB / 441.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.3072, allocations: 37.69 kB / 441.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.3072, allocations: 11.94 kB / 441.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.3076, allocations: 72.91 kB / 441.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.3078, allocations: 47.89 kB / 441.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.3103, allocations: 1.595 MB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.3106, allocations: 59.8 kB / 443.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.3107, allocations: 12 kB / 443.5 MB, free: 9.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 21 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.3108, allocations: 149.7 kB / 443.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.3109, allocations: 23.86 kB / 443.7 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.3109, allocations: 25.7 kB / 443.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.3109, allocations: 7.984 kB / 443.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.3109, allocations: 0 / 443.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3109, allocations: 192 / 443.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.3112, allocations: 252.5 kB / 444 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3112, allocations: 4 kB / 444 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.3113, allocations: 19.97 kB / 444 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002594/0.3116, allocations: 64.8 kB / 444.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.3116, allocations: 11.94 kB / 444.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.3139, allocations: 1.577 MB / 445.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3139, allocations: 0 / 445.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3149, allocations: 317.5 kB / 446 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.553e-05/0.315, allocations: 35.83 kB / 446 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.315, allocations: 8 kB / 446 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.3152, allocations: 24.16 kB / 446 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.3153, allocations: 27.95 kB / 446 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.3153, allocations: 11.94 kB / 446.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002139/0.3156, allocations: 197.2 kB / 446.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3156, allocations: 3.938 kB / 446.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.3159, allocations: 83.83 kB / 446.3 MB, free: 6.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001371/0.3173, allocations: 0.8478 MB / 447.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.3184, allocations: 440 kB / 447.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3184, allocations: 0 / 447.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004683/0.3188, allocations: 218.5 kB / 447.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.3191, allocations: 45.2 kB / 447.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005396/0.3245, allocations: 3.111 MB / 451 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.3247, allocations: 146.9 kB / 451.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.3248, allocations: 26.28 kB / 451.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3249, allocations: 79.41 kB / 451.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3249, allocations: 0 / 451.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04019/0.3651, allocations: 7.523 MB / 458.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.65, allocations: 10.81 kB / 458.8 MB, free: 10.09 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_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_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vIn.signalSource.y in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv. Warning: Get data of variable vIn.signalSource.y from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.117792372009717]