Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001806/0.001806, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002148/0.002148, allocations: 207.5 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 230.4 MB / 254 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 67.89 kB / 373 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1025, allocations: 53.37 MB / 426.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003385/0.1059, allocations: 2.176 MB / 428.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.1069, allocations: 0.6116 MB / 429.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.107, allocations: 4 kB / 429.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1072, allocations: 27.72 kB / 429.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.676e-05/0.1072, allocations: 43.64 kB / 429.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.1075, allocations: 51.86 kB / 429.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.1077, allocations: 159.2 kB / 429.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.1078, allocations: 44.05 kB / 429.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.108, allocations: 67.72 kB / 429.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1081, allocations: 63.7 kB / 429.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.1081, allocations: 16 kB / 429.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.627e-05/0.1082, allocations: 31.94 kB / 429.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.663e-05/0.1082, allocations: 23.92 kB / 429.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.283e-05/0.1083, allocations: 83.58 kB / 429.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.1085, allocations: 159.3 kB / 429.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1086, allocations: 3.938 kB / 429.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1086, allocations: 4 kB / 429.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1086, allocations: 0 / 429.9 MB, free: 1.02 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.0006225/0.1092, allocations: 439 kB / 430.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1092, allocations: 16.03 kB / 430.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.241e-05/0.1093, allocations: 46.73 kB / 430.4 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.1095, allocations: 24.83 kB / 430.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1097, allocations: 212.1 kB / 430.6 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.1097, allocations: 8.609 kB / 430.6 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.1097, allocations: 12.38 kB / 430.7 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.11, allocations: 119.6 kB / 430.8 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.11, allocations: 0 / 430.8 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.11, allocations: 15.94 kB / 430.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.11, allocations: 0 / 430.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1895/0.2996, allocations: 81.42 kB / 430.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.3006, allocations: 0.5992 MB / 431.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.3009, allocations: 78.5 kB / 431.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.549e-05/0.301, allocations: 33.14 kB / 431.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.301, allocations: 7.75 kB / 431.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.301, allocations: 31.53 kB / 431.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 2.746e-06/0.301, allocations: 0 / 431.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000756/0.3018, allocations: 255.1 kB / 431.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.3018, allocations: 54.16 kB / 431.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.3019, allocations: 150.3 kB / 432.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.302, allocations: 29.95 kB / 432.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.404e-05/0.302, allocations: 129.4 kB / 432.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.3021, allocations: 21.52 kB / 432.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-05/0.3021, allocations: 20.58 kB / 432.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.757e-05/0.3022, allocations: 320.3 kB / 432.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-05/0.3022, allocations: 25.33 kB / 432.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.474e-05/0.3023, allocations: 41.11 kB / 432.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.3024, allocations: 74.88 kB / 432.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3024, allocations: 0.875 kB / 432.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002735/0.3027, allocations: 138 kB / 432.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3027, allocations: 8.562 kB / 432.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3027, allocations: 1.656 kB / 432.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.303, allocations: 40.02 kB / 432.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.357e-05/0.303, allocations: 14.62 kB / 432.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.3045, allocations: 1.682 MB / 434.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.3045, allocations: 14.38 kB / 434.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.3045, allocations: 4.438 kB / 434.6 MB, free: 8.27 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.708e-05/0.3046, allocations: 118.7 kB / 434.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.3046, allocations: 16.7 kB / 434.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.3047, allocations: 17.42 kB / 434.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3047, allocations: 1.734 kB / 434.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.3047, allocations: 0.6562 kB / 434.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3047, allocations: 0.8125 kB / 434.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.3049, allocations: 212.3 kB / 435 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3049, allocations: 2.094 kB / 435 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.472e-05/0.3049, allocations: 6.266 kB / 435 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.305, allocations: 41.91 kB / 435 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.305, allocations: 0 / 435 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009546/0.306, allocations: 1.687 MB / 436.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.306, allocations: 1.094 kB / 436.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/0.3062, allocations: 216.3 kB / 436.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.3063, allocations: 86.59 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.3063, allocations: 3.781 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.499e-05/0.3064, allocations: 5.281 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.3064, allocations: 8.688 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.3064, allocations: 1.062 kB / 437 MB, free: 6.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.205e-05/0.3065, allocations: 115.3 kB / 437.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3065, allocations: 4.188 kB / 437.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.3068, allocations: 39.34 kB / 437.2 MB, free: 6.113 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.0004259/0.3072, allocations: 0.7529 MB / 437.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.3076, allocations: 192.9 kB / 438.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3076, allocations: 0 / 438.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.3078, allocations: 156.4 kB / 438.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.308, allocations: 11.7 kB / 438.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.3097, allocations: 1.73 MB / 440 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.3099, allocations: 0.7041 MB / 440.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.3099, allocations: 7.438 kB / 440.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.31, allocations: 29.3 kB / 440.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.31, allocations: 4 kB / 440.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.3377, allocations: 3.071 MB / 443.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.26, allocations: 12.19 kB / 443.8 MB, free: 2.652 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.792196637019515]