Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.001292/0.001292, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001374/0.001374, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 51.91 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2738, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004204/0.278, allocations: 2.793 MB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.2793, allocations: 0.7244 MB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2795, allocations: 11.94 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.2796, allocations: 55.44 kB / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001938/0.2798, allocations: 103.1 kB / 434.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.2801, allocations: 103.8 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.2806, allocations: 410.2 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2808, allocations: 77.27 kB / 435.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.281, allocations: 159.5 kB / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.2812, allocations: 171.2 kB / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.2813, allocations: 32 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.952e-05/0.2814, allocations: 40 kB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.2814, allocations: 79.73 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.2816, allocations: 139.4 kB / 436 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.282, allocations: 406.3 kB / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.282, allocations: 0 / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.282, allocations: 0 / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.282, allocations: 0 / 436.4 MB, free: 1.352 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009667/0.283, allocations: 0.5676 MB / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.283, allocations: 8.031 kB / 436.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.176e-05/0.2831, allocations: 66.67 kB / 437 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.2833, allocations: 48.69 kB / 437 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.2837, allocations: 225.9 kB / 437.3 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.2837, allocations: 21.03 kB / 437.3 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.2837, allocations: 24.38 kB / 437.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.2843, allocations: 420.4 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.2843, allocations: 0 / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.2844, allocations: 15.98 kB / 437.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2844, allocations: 8 kB / 437.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.2848, allocations: 214.5 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.2864, allocations: 0.8713 MB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004726/0.2869, allocations: 197.3 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.2871, allocations: 104.7 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2872, allocations: 8 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.2872, allocations: 34.56 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.223e-06/0.2872, allocations: 0 / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001202/0.2884, allocations: 411.2 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.2884, allocations: 51.41 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.2887, allocations: 265.8 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.2888, allocations: 29.7 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.2889, allocations: 192.1 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.289, allocations: 75.33 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.718e-05/0.289, allocations: 41.94 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2892, allocations: 338.8 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.2894, allocations: 80.42 kB / 440.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.2896, allocations: 111.4 kB / 440.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.29, allocations: 174.5 kB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.29, allocations: 3.938 kB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006315/0.2906, allocations: 334.7 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2906, allocations: 4 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2906, allocations: 0 / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.2909, allocations: 73.73 kB / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.2911, allocations: 39.97 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002428/0.2935, allocations: 2.833 MB / 444.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.2937, allocations: 35.89 kB / 444.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.2937, allocations: 4 kB / 444.2 MB, free: 8.984 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 (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.0001495/0.2939, allocations: 145.7 kB / 444.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.2939, allocations: 27.86 kB / 444.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.357e-05/0.294, allocations: 26.28 kB / 444.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.294, allocations: 4 kB / 444.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.294, allocations: 0 / 444.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.294, allocations: 7.984 kB / 444.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.295, allocations: 0.6222 MB / 445 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.295, allocations: 0 / 445 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.2952, allocations: 27.97 kB / 445.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.2953, allocations: 73.67 kB / 445.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2954, allocations: 8 kB / 445.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.2976, allocations: 2.818 MB / 448 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2976, allocations: 4.125 kB / 448 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.2983, allocations: 387 kB / 448.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.2983, allocations: 23.8 kB / 448.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.2983, allocations: 8 kB / 448.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.2986, allocations: 31.97 kB / 448.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-05/0.2986, allocations: 23.95 kB / 448.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2987, allocations: 4 kB / 448.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.2988, allocations: 185.2 kB / 448.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2988, allocations: 0 / 448.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000367/0.2992, allocations: 103.8 kB / 448.7 MB, free: 4.145 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 (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.0009077/0.3001, allocations: 0.911 MB / 449.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007773/0.3009, allocations: 445 kB / 450.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3009, allocations: 3.938 kB / 450.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.3013, allocations: 333.2 kB / 450.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.3017, allocations: 52.53 kB / 450.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.3053, allocations: 2.714 MB / 453.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.3054, allocations: 159.8 kB / 453.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.3055, allocations: 22.28 kB / 453.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.3057, allocations: 91.41 kB / 453.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3057, allocations: 0 / 453.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.3457, allocations: 7.467 MB / 460.9 MB, free: 7.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.54, allocations: 1.5 kB / 460.9 MB, free: 7.973 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable VariableResistor.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! Error: Could not read variable R2.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable R2.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.044666258007055]