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.001263/0.001263, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002163/0.002163, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.467/1.467, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001475/0.001475, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09993, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004472/0.1044, allocations: 3.038 MB / 429.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1058, allocations: 0.7595 MB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.1059, allocations: 7.938 kB / 430.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.1061, allocations: 59.44 kB / 430.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.1063, allocations: 107 kB / 430.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.1066, allocations: 91.88 kB / 430.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.107, allocations: 418.1 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1072, allocations: 75.11 kB / 430.9 MB, free: 232 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.1074, allocations: 159.4 kB / 431 MB, free: 72 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.183/0.2904, allocations: 163.1 kB / 431.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2905, allocations: 30.41 kB / 431.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2907, allocations: 37.66 kB / 431.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.2908, allocations: 74.34 kB / 431.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2909, allocations: 176.5 kB / 431.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.2914, allocations: 401.5 kB / 431.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2914, allocations: 0 / 431.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2914, allocations: 0 / 431.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.2914, allocations: 1.094 kB / 431.9 MB, free: 7.699 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.0009002/0.2923, allocations: 0.6376 MB / 432.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2923, allocations: 9.875 kB / 432.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.954e-05/0.2924, allocations: 63.8 kB / 432.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.2925, allocations: 52.2 kB / 432.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.2929, allocations: 287.4 kB / 432.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.2929, allocations: 19.75 kB / 432.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.2929, allocations: 27.59 kB / 433 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.2934, allocations: 260.2 kB / 433.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2934, allocations: 1.219 kB / 433.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.2934, allocations: 12.59 kB / 433.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.2934, allocations: 8.188 kB / 433.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/0.2939, allocations: 213 kB / 433.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.2952, allocations: 0.9742 MB / 434.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.2957, allocations: 282.5 kB / 434.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.2959, allocations: 96.78 kB / 434.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.2959, allocations: 1.891 kB / 434.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.2959, allocations: 43.59 kB / 434.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.2959, allocations: 0 / 434.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00119/0.2971, allocations: 0.5569 MB / 435.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.083e-05/0.2971, allocations: 63.39 kB / 435.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.2974, allocations: 262 kB / 435.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.2974, allocations: 29.77 kB / 435.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.2975, allocations: 181.4 kB / 435.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.2975, allocations: 75.12 kB / 436 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.06e-05/0.2976, allocations: 46.88 kB / 436 MB, free: 5.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.638e-05/0.2976, allocations: 333.6 kB / 436.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.2978, allocations: 81.69 kB / 436.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.298, allocations: 104.5 kB / 436.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003625/0.2984, allocations: 186.9 kB / 436.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2984, allocations: 1.375 kB / 436.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006021/0.299, allocations: 318.6 kB / 437 MB, free: 5.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.299, allocations: 6.406 kB / 437 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.299, allocations: 4.719 kB / 437.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.2993, allocations: 74.06 kB / 437.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.2995, allocations: 40.45 kB / 437.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.3011, allocations: 3.052 MB / 440.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.3013, allocations: 25.86 kB / 440.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3014, allocations: 6.719 kB / 440.2 MB, free: 2.473 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.0001068/0.3015, allocations: 141 kB / 440.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.3015, allocations: 39.39 kB / 440.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.936e-05/0.3016, allocations: 26.69 kB / 440.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.3016, allocations: 3.266 kB / 440.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.3016, allocations: 1.219 kB / 440.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3016, allocations: 2.828 kB / 440.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.3025, allocations: 0.684 MB / 441.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3025, allocations: 4.969 kB / 441.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.3027, allocations: 28.28 kB / 441.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.3028, allocations: 72.3 kB / 441.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.3029, allocations: 9.953 kB / 441.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.3049, allocations: 3.037 MB / 444.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3049, allocations: 7.844 kB / 444.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006684/0.3056, allocations: 386.4 kB / 444.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.3057, allocations: 101.8 kB / 444.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.3057, allocations: 6.609 kB / 444.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.306, allocations: 38.48 kB / 444.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/0.306, allocations: 19.8 kB / 444.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.306, allocations: 4.344 kB / 444.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002058/0.3063, allocations: 188.7 kB / 445 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3063, allocations: 0 / 445 MB, free: 14.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003936/0.3066, allocations: 90.55 kB / 445.1 MB, free: 14.35 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.001043/0.3077, allocations: 0.9212 MB / 446 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008908/0.3086, allocations: 438.2 kB / 446.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3086, allocations: 1.125 kB / 446.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004701/0.3091, allocations: 340.1 kB / 446.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.3094, allocations: 41.88 kB / 446.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/0.3136, allocations: 2.719 MB / 449.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.314, allocations: 0.7683 MB / 450.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.3141, allocations: 25.33 kB / 450.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.3143, allocations: 91.58 kB / 450.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3143, allocations: 3.938 kB / 450.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.3509, allocations: 6.506 MB / 457 MB, free: 9.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.783/10.13, allocations: 11.91 kB / 457 MB, free: 9.379 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.663239660003455]