Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001416/0.001416, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.00143/0.00143, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.449/1.449, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 55.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1005, allocations: 53.32 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003638/0.1041, allocations: 2.166 MB / 428.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1053, allocations: 0.6194 MB / 429.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.898e-05/0.1054, allocations: 0 / 429.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1055, allocations: 19.8 kB / 429.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.769e-05/0.1056, allocations: 51.56 kB / 429.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.1058, allocations: 51.86 kB / 429.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.1061, allocations: 155.3 kB / 429.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.1062, allocations: 37.47 kB / 429.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.1064, allocations: 71.72 kB / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.1065, allocations: 71.69 kB / 429.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.631e-05/0.1065, allocations: 12 kB / 429.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.782e-05/0.1066, allocations: 20 kB / 429.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.1067, allocations: 27.92 kB / 429.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.1067, allocations: 75.61 kB / 429.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.107, allocations: 179.2 kB / 429.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.107, allocations: 3.938 kB / 429.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.107, allocations: 0 / 429.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.107, allocations: 0 / 429.9 MB, free: 1.246 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007119/0.1077, allocations: 443 kB / 430.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1078, allocations: 8.031 kB / 430.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.444e-05/0.1078, allocations: 46.73 kB / 430.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.108, allocations: 36.77 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.1083, allocations: 206.3 kB / 430.6 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.1084, allocations: 8.609 kB / 430.6 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.1084, allocations: 12.38 kB / 430.6 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.1086, allocations: 123.6 kB / 430.7 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1086, allocations: 0 / 430.7 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.1087, allocations: 7.984 kB / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1087, allocations: 4 kB / 430.7 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.1089, allocations: 80.66 kB / 430.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1906/0.2995, allocations: 0.5965 MB / 431.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.2998, allocations: 76.31 kB / 431.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.849e-05/0.2999, allocations: 34.11 kB / 431.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.2999, allocations: 4.922 kB / 431.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.2999, allocations: 38.81 kB / 431.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 2.294e-06/0.2999, allocations: 0.875 kB / 431.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007407/0.3006, allocations: 258.3 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.3007, allocations: 54.16 kB / 431.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.3008, allocations: 142.4 kB / 432 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3008, allocations: 29.27 kB / 432 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.48e-05/0.3009, allocations: 129.8 kB / 432.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.3009, allocations: 24.39 kB / 432.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.3009, allocations: 19.94 kB / 432.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.219e-05/0.301, allocations: 325.3 kB / 432.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.101e-05/0.3011, allocations: 22.27 kB / 432.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.445e-05/0.3011, allocations: 44.19 kB / 432.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.3013, allocations: 69.33 kB / 432.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3013, allocations: 3.625 kB / 432.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002809/0.3016, allocations: 137.7 kB / 432.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3016, allocations: 4.688 kB / 432.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3016, allocations: 2.203 kB / 432.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.3018, allocations: 35.7 kB / 432.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.402e-05/0.3018, allocations: 15.09 kB / 432.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.3031, allocations: 1.689 MB / 434.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.035e-05/0.3032, allocations: 11.88 kB / 434.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3032, allocations: 2.906 kB / 434.6 MB, free: 8.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.3033, allocations: 122.7 kB / 434.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.3033, allocations: 12.2 kB / 434.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.216e-05/0.3033, allocations: 17.38 kB / 434.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3033, allocations: 2.219 kB / 434.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.3033, allocations: 0 / 434.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3033, allocations: 4.266 kB / 434.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.3035, allocations: 213.3 kB / 434.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3035, allocations: 1.094 kB / 434.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.3036, allocations: 4.047 kB / 434.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.3037, allocations: 42.84 kB / 435 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.3037, allocations: 4.5 kB / 435 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009258/0.3046, allocations: 1.675 MB / 436.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3046, allocations: 3.938 kB / 436.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.3049, allocations: 219.4 kB / 436.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.56e-05/0.3049, allocations: 86.16 kB / 436.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.3049, allocations: 1.688 kB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.305, allocations: 8.656 kB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.305, allocations: 8.25 kB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.305, allocations: 9.078 kB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.864e-05/0.3051, allocations: 113.4 kB / 437.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3051, allocations: 0.7656 kB / 437.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.3055, allocations: 38.14 kB / 437.1 MB, free: 6.301 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004091/0.3059, allocations: 0.747 MB / 437.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003717/0.3062, allocations: 197.4 kB / 438.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3062, allocations: 192 / 438.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.3064, allocations: 153.8 kB / 438.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3067, allocations: 15.12 kB / 438.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.3084, allocations: 1.718 MB / 439.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.3085, allocations: 0.7098 MB / 440.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.152e-05/0.3086, allocations: 4.141 kB / 440.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.797e-05/0.3086, allocations: 34.22 kB / 440.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3086, allocations: 4 kB / 440.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.3394, allocations: 3.074 MB / 443.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.51, allocations: 15.03 kB / 443.8 MB, free: 2.898 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable resistor.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.010638742998708]