Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 120.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002681/0.002681, allocations: 194.8 kB / 20.73 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 51.92 kB / 365.7 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.101, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004755/0.1058, allocations: 2.143 MB / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1071, allocations: 0.5454 MB / 420.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1072, allocations: 4 kB / 420.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.1073, allocations: 19.78 kB / 420.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.1074, allocations: 43.64 kB / 420.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.1077, allocations: 39.89 kB / 420.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.1079, allocations: 163.2 kB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.1081, allocations: 37.47 kB / 420.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1082, allocations: 71.72 kB / 420.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.1084, allocations: 59.77 kB / 420.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.1084, allocations: 12 kB / 420.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.906e-05/0.1085, allocations: 20 kB / 420.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.215e-05/0.1085, allocations: 31.84 kB / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.1086, allocations: 79.59 kB / 421.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.109, allocations: 167.3 kB / 421.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.109, allocations: 0 / 421.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.109, allocations: 0 / 421.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.109, allocations: 0 / 421.2 MB, free: 9.152 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.0008259/0.1098, allocations: 443 kB / 421.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1099, allocations: 12.03 kB / 421.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.1099, allocations: 46.73 kB / 421.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.11, allocations: 12.89 kB / 421.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.1104, allocations: 212.1 kB / 421.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.1104, allocations: 8.609 kB / 421.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/0.1105, allocations: 12.38 kB / 421.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.1108, allocations: 124.3 kB / 422.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1108, allocations: 0 / 422.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.1108, allocations: 4 kB / 422.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1108, allocations: 4 kB / 422.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.1111, allocations: 72.67 kB / 422.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.1123, allocations: 0.6135 MB / 422.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004348/0.1128, allocations: 78.62 kB / 422.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.1129, allocations: 32.95 kB / 422.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.1129, allocations: 8 kB / 422.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1129, allocations: 30.56 kB / 422.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.794e-06/0.1129, allocations: 0 / 422.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001072/0.114, allocations: 255.4 kB / 423.2 MB, free: 6.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.1141, allocations: 59.33 kB / 423.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1143, allocations: 144.2 kB / 423.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.1143, allocations: 25.7 kB / 423.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1144, allocations: 132.1 kB / 423.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.1145, allocations: 23.78 kB / 423.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.895e-05/0.1145, allocations: 21.72 kB / 423.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.1147, allocations: 326.8 kB / 423.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1148, allocations: 19.98 kB / 423.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.115, allocations: 42.56 kB / 423.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.1152, allocations: 74.44 kB / 424 MB, free: 6.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1152, allocations: 4 kB / 424 MB, free: 6.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000513/0.1157, allocations: 130.3 kB / 424.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1157, allocations: 8 kB / 424.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1158, allocations: 0 / 424.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.116, allocations: 36.78 kB / 424.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.1161, allocations: 16.05 kB / 424.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.1196, allocations: 1.692 MB / 425.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.1197, allocations: 7.938 kB / 425.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1197, allocations: 0 / 425.9 MB, free: 4.02 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.0001705/0.1199, allocations: 121.8 kB / 426 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.12, allocations: 15.94 kB / 426 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.577e-05/0.12, allocations: 12.72 kB / 426 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.12, allocations: 4 kB / 426 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.12, allocations: 0 / 426 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.12, allocations: 0 / 426 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.1204, allocations: 217.5 kB / 426.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1204, allocations: 3.938 kB / 426.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.401e-05/0.1205, allocations: 7.984 kB / 426.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002303/0.1207, allocations: 32.84 kB / 426.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1207, allocations: 8 kB / 426.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.1231, allocations: 1.682 MB / 428 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1231, allocations: 0 / 428 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005554/0.1236, allocations: 212.3 kB / 428.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.1237, allocations: 92.95 kB / 428.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.1237, allocations: 0 / 428.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.1239, allocations: 8.062 kB / 428.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.124, allocations: 11.98 kB / 428.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.124, allocations: 4 kB / 428.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001304/0.1241, allocations: 109.1 kB / 428.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1241, allocations: 0 / 428.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006618/0.1248, allocations: 43.89 kB / 428.5 MB, free: 1.219 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.0009857/0.1258, allocations: 0.7483 MB / 429.2 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.1264, allocations: 186.8 kB / 429.4 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/0.1264, allocations: 4.125 kB / 429.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.1268, allocations: 166.5 kB / 429.6 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.1272, allocations: 12.23 kB / 429.6 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.1305, allocations: 1.718 MB / 431.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004299/0.131, allocations: 0.7079 MB / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.666e-05/0.131, allocations: 8.422 kB / 432 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.625e-05/0.1311, allocations: 27.44 kB / 432 MB, free: 13.46 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1311, allocations: 0 / 432 MB, free: 13.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0601/0.1912, allocations: 3.043 MB / 435.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.48, allocations: 8 kB / 435.1 MB, free: 10.52 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.341878056060523]