Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.001285/0.001285, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001341/0.001341, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.446/1.446, allocations: 225.6 MB / 249.1 MB, free: 3.602 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.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 43.92 kB / 365.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1051, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004325/0.1094, allocations: 3.011 MB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.1106, allocations: 0.6738 MB / 421.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1107, allocations: 7.938 kB / 421.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.1109, allocations: 63.38 kB / 421.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.1111, allocations: 111 kB / 421.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.1113, allocations: 83.88 kB / 421.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.1118, allocations: 410.2 kB / 422.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.112, allocations: 79.11 kB / 422.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.1122, allocations: 155.5 kB / 422.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.1124, allocations: 167.2 kB / 422.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.107e-05/0.1124, allocations: 32 kB / 422.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.257e-05/0.1125, allocations: 32 kB / 422.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.1125, allocations: 75.73 kB / 422.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1127, allocations: 171.1 kB / 422.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.1131, allocations: 390.4 kB / 423.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1131, allocations: 0 / 423.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1131, allocations: 0 / 423.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1132, allocations: 0 / 423.2 MB, free: 7.121 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001063/0.1142, allocations: 0.6389 MB / 423.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1143, allocations: 19.88 kB / 423.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.485e-05/0.1143, allocations: 62.67 kB / 423.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.086e-05/0.1144, allocations: 40.7 kB / 424 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.1148, allocations: 291.7 kB / 424.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.1148, allocations: 20.94 kB / 424.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.1149, allocations: 24.38 kB / 424.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.1154, allocations: 272.9 kB / 424.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1154, allocations: 3.938 kB / 424.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.1154, allocations: 12 kB / 424.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1154, allocations: 8 kB / 424.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005018/0.1159, allocations: 218.1 kB / 424.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1176, allocations: 0.9641 MB / 425.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.1181, allocations: 275.8 kB / 426 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.1184, allocations: 92.81 kB / 426.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1184, allocations: 7.938 kB / 426.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.1184, allocations: 38.56 kB / 426.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1184, allocations: 0 / 426.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001339/0.1197, allocations: 0.5599 MB / 426.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.1198, allocations: 55.41 kB / 426.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.1201, allocations: 258.6 kB / 427 MB, free: 3.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.1201, allocations: 29.7 kB / 427.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1202, allocations: 188.2 kB / 427.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.1203, allocations: 71.38 kB / 427.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.1204, allocations: 45.94 kB / 427.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1205, allocations: 338.8 kB / 427.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.1207, allocations: 76.42 kB / 427.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.1209, allocations: 112.1 kB / 427.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.1213, allocations: 187.1 kB / 428.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1213, allocations: 0 / 428.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006717/0.122, allocations: 322.8 kB / 428.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.122, allocations: 4 kB / 428.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.122, allocations: 4 kB / 428.4 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.1223, allocations: 77.66 kB / 428.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.1225, allocations: 31.98 kB / 428.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002638/0.1251, allocations: 3.056 MB / 431.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.1253, allocations: 35.92 kB / 431.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1254, allocations: 8 kB / 431.6 MB, free: 14.12 MB / 366.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.1255, allocations: 141.7 kB / 431.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.451e-05/0.1256, allocations: 23.86 kB / 431.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.1256, allocations: 34.17 kB / 431.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1256, allocations: 4 kB / 431.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1256, allocations: 0 / 431.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1256, allocations: 7.938 kB / 431.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.1267, allocations: 0.6853 MB / 432.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1267, allocations: 0 / 432.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.1269, allocations: 27.98 kB / 432.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.1271, allocations: 73.66 kB / 432.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1271, allocations: 4 kB / 432.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.1296, allocations: 3.04 MB / 435.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1296, allocations: 0 / 435.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006919/0.1303, allocations: 390.9 kB / 436 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-05/0.1304, allocations: 96.91 kB / 436.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.1304, allocations: 8.188 kB / 436.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.1306, allocations: 35.97 kB / 436.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.1307, allocations: 19.97 kB / 436.2 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1307, allocations: 8 kB / 436.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.1309, allocations: 186 kB / 436.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1309, allocations: 0 / 436.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000391/0.1313, allocations: 95.83 kB / 436.5 MB, free: 8.852 MB / 366.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001011/0.1323, allocations: 0.9221 MB / 437.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008144/0.1331, allocations: 437.1 kB / 437.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1331, allocations: 0 / 437.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004651/0.1336, allocations: 344.1 kB / 438.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.134, allocations: 50.94 kB / 438.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003827/0.1378, allocations: 2.703 MB / 440.9 MB, free: 4.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.1383, allocations: 0.7678 MB / 441.7 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1384, allocations: 26.28 kB / 441.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.1385, allocations: 83.41 kB / 441.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1386, allocations: 0 / 441.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2576/0.3962, allocations: 6.474 MB / 448.2 MB, free: 30.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.66, allocations: 0 / 448.2 MB, free: 30.75 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable VariableResistor.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable VariableResistor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! Error: Could not read variable R2.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable R2.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.34348407201469]