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.001239/0.001239, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001365/0.001365, allocations: 193.5 kB / 24.49 MB, free: 3.941 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.347/1.347, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 43.94 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2689, allocations: 52.18 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004416/0.2733, allocations: 2.773 MB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2749, allocations: 0.6544 MB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.2751, allocations: 4 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.2753, allocations: 59.44 kB / 426.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.2755, allocations: 107 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.2758, allocations: 87.88 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005101/0.2763, allocations: 418.1 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.2765, allocations: 75.58 kB / 427.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.2768, allocations: 151.5 kB / 427.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.277, allocations: 167.2 kB / 427.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.726e-05/0.2771, allocations: 32 kB / 427.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.141e-05/0.2771, allocations: 36 kB / 427.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.658e-05/0.2772, allocations: 71.75 kB / 428 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.2774, allocations: 151.3 kB / 428.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.2778, allocations: 390.4 kB / 428.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2778, allocations: 0 / 428.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2778, allocations: 0 / 428.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2778, allocations: 0 / 428.5 MB, free: 9.234 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.001015/0.2788, allocations: 0.5637 MB / 429.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2789, allocations: 19.95 kB / 429.1 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.845e-05/0.2789, allocations: 8.844 kB / 429.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.279, allocations: 62.73 kB / 429.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.2791, allocations: 40.7 kB / 429.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.2795, allocations: 225.8 kB / 429.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.2795, allocations: 21.03 kB / 429.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.2796, allocations: 28.38 kB / 429.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006542/0.2802, allocations: 412.2 kB / 429.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2802, allocations: 0 / 429.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.2803, allocations: 12 kB / 429.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.2803, allocations: 4 kB / 429.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005225/0.2808, allocations: 218.5 kB / 430.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.2825, allocations: 0.8636 MB / 431 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/0.283, allocations: 206.6 kB / 431.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.2832, allocations: 96.81 kB / 431.3 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.2832, allocations: 7.984 kB / 431.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.2832, allocations: 30.56 kB / 431.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.2832, allocations: 0 / 431.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001214/0.2845, allocations: 420.7 kB / 431.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.2845, allocations: 63.34 kB / 431.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/0.2848, allocations: 253.9 kB / 432 MB, free: 5.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.2848, allocations: 29.7 kB / 432 MB, free: 5.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.285, allocations: 184.2 kB / 432.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.899e-05/0.285, allocations: 79.38 kB / 432.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.217e-05/0.2851, allocations: 37.94 kB / 432.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2853, allocations: 338.8 kB / 432.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.2855, allocations: 80.42 kB / 432.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.2857, allocations: 104.6 kB / 432.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.2861, allocations: 186.5 kB / 433 MB, free: 4.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2861, allocations: 0 / 433 MB, free: 4.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006433/0.2867, allocations: 322.8 kB / 433.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2867, allocations: 4 kB / 433.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2867, allocations: 3.984 kB / 433.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002933/0.287, allocations: 73.73 kB / 433.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.2872, allocations: 39.92 kB / 433.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/0.2898, allocations: 2.83 MB / 436.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.29, allocations: 31.95 kB / 436.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.29, allocations: 8 kB / 436.3 MB, free: 0.8828 MB / 334.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.0001541/0.2901, allocations: 142 kB / 436.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/0.2902, allocations: 23.86 kB / 436.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.2902, allocations: 30.27 kB / 436.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2902, allocations: 4.188 kB / 436.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2902, allocations: 4 kB / 436.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2902, allocations: 4 kB / 436.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.2913, allocations: 0.6263 MB / 437.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2913, allocations: 0 / 437.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.2914, allocations: 19.98 kB / 437.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.2916, allocations: 81.61 kB / 437.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2916, allocations: 4 kB / 437.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.294, allocations: 2.821 MB / 440.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.294, allocations: 4.125 kB / 440.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006168/0.2946, allocations: 381.3 kB / 440.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.2947, allocations: 27.78 kB / 440.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.2947, allocations: 8 kB / 440.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.2949, allocations: 31.97 kB / 440.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.023e-05/0.295, allocations: 19.97 kB / 440.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.295, allocations: 4 kB / 440.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.2952, allocations: 189.2 kB / 440.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2952, allocations: 0 / 440.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.2956, allocations: 95.83 kB / 440.8 MB, free: 12.05 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.0009358/0.2965, allocations: 0.9236 MB / 441.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.2972, allocations: 444.9 kB / 442.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2972, allocations: 0 / 442.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004238/0.2977, allocations: 341.2 kB / 442.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.298, allocations: 48.78 kB / 442.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.3016, allocations: 2.702 MB / 445.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.3018, allocations: 156 kB / 445.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.3019, allocations: 26.28 kB / 445.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.302, allocations: 95.39 kB / 445.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.302, allocations: 0 / 445.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.337, allocations: 7.036 MB / 452.6 MB, free: 328 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.75, allocations: 8.062 kB / 452.6 MB, free: 320 kB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.248869081959128]