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.001309/0.001309, allocations: 113.1 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.001388/0.001388, allocations: 215.7 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.384/1.384, allocations: 230.6 MB / 257.5 MB, free: 7.977 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.00149/0.00149, allocations: 47.92 kB / 377.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2702, allocations: 53.37 MB / 431.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004219/0.2744, allocations: 2.842 MB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2757, allocations: 0.6778 MB / 434.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.2758, allocations: 4 kB / 434.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.276, allocations: 43.52 kB / 434.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.2762, allocations: 99.17 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.2764, allocations: 83.89 kB / 434.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004482/0.2769, allocations: 378.5 kB / 435.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.2771, allocations: 85.05 kB / 435.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.2773, allocations: 155.4 kB / 435.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.2775, allocations: 163.4 kB / 435.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.2776, allocations: 36 kB / 435.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.589e-05/0.2776, allocations: 36 kB / 435.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.2777, allocations: 79.69 kB / 435.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.2779, allocations: 163.1 kB / 436 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.2784, allocations: 378.4 kB / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2784, allocations: 0 / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2784, allocations: 4 kB / 436.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2784, allocations: 0 / 436.3 MB, free: 1.598 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.001323/0.2797, allocations: 0.5897 MB / 436.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2797, allocations: 8.031 kB / 436.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.669e-05/0.2798, allocations: 58.72 kB / 437 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/0.2799, allocations: 40.7 kB / 437 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.2803, allocations: 219 kB / 437.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.2803, allocations: 20.81 kB / 437.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.2803, allocations: 24.38 kB / 437.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.281, allocations: 302.7 kB / 437.6 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.281, allocations: 0 / 437.6 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.281, allocations: 12 kB / 437.6 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.281, allocations: 8 kB / 437.6 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007936/0.2818, allocations: 253.5 kB / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.2836, allocations: 1.055 MB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007571/0.2843, allocations: 202.5 kB / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.2846, allocations: 84.78 kB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.2847, allocations: 4 kB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004444/0.2851, allocations: 169.9 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.213e-06/0.2851, allocations: 0 / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001936/0.287, allocations: 441.8 kB / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.2871, allocations: 110.8 kB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.2874, allocations: 281.8 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.2875, allocations: 29.7 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.2876, allocations: 196 kB / 440.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.095e-05/0.2877, allocations: 47.67 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.2878, allocations: 53.89 kB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.2879, allocations: 338.8 kB / 440.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.2883, allocations: 88.16 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.2887, allocations: 214.8 kB / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006736/0.2894, allocations: 304.3 kB / 441.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2894, allocations: 0 / 441.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001137/0.2905, allocations: 423.8 kB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.2905, allocations: 33.69 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2905, allocations: 7.938 kB / 441.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/0.2909, allocations: 72.91 kB / 442 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.2911, allocations: 51.89 kB / 442 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.2935, allocations: 1.608 MB / 443.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.2938, allocations: 51.98 kB / 443.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.2938, allocations: 12 kB / 443.7 MB, free: 9.758 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.0001635/0.294, allocations: 153.6 kB / 443.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.294, allocations: 35.81 kB / 443.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.861e-05/0.2941, allocations: 25.7 kB / 443.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2941, allocations: 4 kB / 443.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2941, allocations: 0 / 443.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2941, allocations: 0 / 443.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.2944, allocations: 272.5 kB / 444.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2944, allocations: 0 / 444.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.2945, allocations: 23.91 kB / 444.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002434/0.2947, allocations: 68.8 kB / 444.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.2947, allocations: 4 kB / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.2969, allocations: 1.6 MB / 445.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.2969, allocations: 8.047 kB / 445.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009832/0.2979, allocations: 317.4 kB / 446.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.298, allocations: 35.83 kB / 446.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.298, allocations: 4 kB / 446.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2983, allocations: 31.95 kB / 446.2 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.2983, allocations: 23.97 kB / 446.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.2984, allocations: 7.938 kB / 446.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.2986, allocations: 197.2 kB / 446.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2986, allocations: 0 / 446.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.2989, allocations: 79.89 kB / 446.5 MB, free: 6.699 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.001332/0.3002, allocations: 0.8511 MB / 447.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009592/0.3012, allocations: 409.8 kB / 447.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3012, allocations: 0 / 447.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.3017, allocations: 218.5 kB / 448 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.3019, allocations: 41.53 kB / 448 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.307, allocations: 3.006 MB / 451 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.3074, allocations: 0.748 MB / 451.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.3075, allocations: 30.27 kB / 451.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3076, allocations: 79.41 kB / 451.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3076, allocations: 0 / 451.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.3454, allocations: 7.049 MB / 459 MB, free: 10.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.62, allocations: 11.61 kB / 459 MB, free: 10.18 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: 14.997930773999542]