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.001837/0.001837, 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.002269/0.002269, allocations: 217.2 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 8 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.001484/0.001484, allocations: 47.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2453, allocations: 53.37 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003595/0.2489, allocations: 2.171 MB / 433.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.25, allocations: 0.6272 MB / 433.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.925e-05/0.2501, allocations: 4 kB / 434 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.2503, allocations: 19.78 kB / 434 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.647e-05/0.2504, allocations: 51.56 kB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.2506, allocations: 51.88 kB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.2509, allocations: 163.2 kB / 434.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.251, allocations: 41.59 kB / 434.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.2512, allocations: 71.72 kB / 434.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.2513, allocations: 63.77 kB / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.2513, allocations: 12 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.2514, allocations: 20 kB / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.477e-05/0.2514, allocations: 35.84 kB / 434.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.638e-05/0.2515, allocations: 79.59 kB / 434.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.2518, allocations: 171.7 kB / 434.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2518, allocations: 0 / 434.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2518, allocations: 0 / 434.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.2518, allocations: 0 / 434.7 MB, free: 3.258 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006103/0.2524, allocations: 365.9 kB / 435.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.2524, allocations: 8.031 kB / 435.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.924e-05/0.2525, allocations: 46.73 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.2527, allocations: 28.83 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.2529, allocations: 158.3 kB / 435.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.2529, allocations: 8.609 kB / 435.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.253, allocations: 8.375 kB / 435.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.2532, allocations: 128.6 kB / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2532, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.2532, allocations: 4 kB / 435.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2532, allocations: 4 kB / 435.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.2534, allocations: 80.66 kB / 435.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008574/0.2543, allocations: 0.5658 MB / 436.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.2546, allocations: 78.62 kB / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.148e-05/0.2546, allocations: 36.95 kB / 436.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.2547, allocations: 0 / 436.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.2547, allocations: 38.56 kB / 436.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.2547, allocations: 7.875 kB / 436.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006608/0.2554, allocations: 178.3 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2554, allocations: 55.34 kB / 436.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2555, allocations: 155.8 kB / 436.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2555, allocations: 29.7 kB / 436.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.2556, allocations: 120.2 kB / 436.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.2557, allocations: 23.83 kB / 436.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.586e-05/0.2557, allocations: 29.67 kB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.2559, allocations: 318.8 kB / 437.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.262e-05/0.256, allocations: 19.98 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.12e-05/0.256, allocations: 50.5 kB / 437.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.2562, allocations: 74.5 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2562, allocations: 0 / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002889/0.2565, allocations: 134.6 kB / 437.4 MB, free: 308 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2565, allocations: 4 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2565, allocations: 0 / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.2567, allocations: 52.83 kB / 437.5 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.094e-05/0.2568, allocations: 11.98 kB / 437.5 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.2584, allocations: 1.573 MB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.931e-05/0.2585, allocations: 11.97 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.2585, allocations: 4 kB / 439.1 MB, free: 14.53 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 0.0001062/0.2586, allocations: 125.8 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.308e-05/0.2586, allocations: 7.953 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.2587, allocations: 12.72 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.2587, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2587, allocations: 3.984 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2587, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.2589, allocations: 188.6 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2589, allocations: 0 / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.2589, allocations: 8.125 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.2591, allocations: 40.83 kB / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.2591, allocations: 0 / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.2604, allocations: 1.582 MB / 441 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2604, allocations: 3.984 kB / 441 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.2607, allocations: 212.2 kB / 441.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.2607, allocations: 12.02 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.2608, allocations: 7.938 kB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.783e-05/0.2609, allocations: 7.984 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.2609, allocations: 8.172 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-06/0.2609, allocations: 4 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.779e-05/0.261, allocations: 116.5 kB / 441.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.261, allocations: 0 / 441.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.2613, allocations: 43.89 kB / 441.4 MB, free: 11.97 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.0005967/0.2619, allocations: 0.7446 MB / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003881/0.2623, allocations: 186.7 kB / 442.4 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2623, allocations: 3.938 kB / 442.4 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.2625, allocations: 158.6 kB / 442.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.2628, allocations: 8 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.2648, allocations: 1.725 MB / 444.3 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.2652, allocations: 0.7119 MB / 445 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.628e-05/0.2652, allocations: 8.422 kB / 445 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.547e-05/0.2653, allocations: 27.38 kB / 445 MB, free: 8.227 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2653, allocations: 0 / 445 MB, free: 8.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03116/0.2964, allocations: 3.165 MB / 448.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.24, allocations: 4.688 kB / 448.2 MB, free: 5.195 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.795113242998923]