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.001382/0.001382, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001372/0.001372, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.393/1.393, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="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.002208/0.002208, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2685, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004593/0.2731, allocations: 3.029 MB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2745, allocations: 0.6895 MB / 426.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002257/0.2747, allocations: 7.938 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000196/0.2749, allocations: 51.44 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002718/0.2752, allocations: 103.1 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.2755, allocations: 99.8 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.276, allocations: 406.2 kB / 427 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.2762, allocations: 79.58 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.2765, allocations: 155.4 kB / 427.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.2767, allocations: 171.3 kB / 427.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.711e-05/0.2768, allocations: 35.94 kB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.2768, allocations: 28 kB / 427.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.897e-05/0.2769, allocations: 71.77 kB / 427.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.2771, allocations: 171.2 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.2775, allocations: 390.8 kB / 428.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2775, allocations: 0 / 428.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2775, allocations: 4 kB / 428.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.2776, allocations: 0 / 428.1 MB, free: 9.109 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.001049/0.2786, allocations: 0.5637 MB / 428.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.2786, allocations: 12.03 kB / 428.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.476e-05/0.2787, allocations: 66.67 kB / 428.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.066e-05/0.2788, allocations: 40.7 kB / 428.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.2793, allocations: 229.8 kB / 429 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.2793, allocations: 25.03 kB / 429 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.2793, allocations: 24.38 kB / 429 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.2799, allocations: 258.2 kB / 429.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2799, allocations: 3.938 kB / 429.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.2799, allocations: 12 kB / 429.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2799, allocations: 4 kB / 429.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005112/0.2804, allocations: 222.5 kB / 429.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.2822, allocations: 0.9259 MB / 430.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000508/0.2827, allocations: 198.7 kB / 430.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.283, allocations: 96.8 kB / 430.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.283, allocations: 4 kB / 430.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.2831, allocations: 42.5 kB / 430.8 MB, free: 6.254 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.482e-06/0.2831, allocations: 0 / 430.8 MB, free: 6.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001224/0.2843, allocations: 414.1 kB / 431.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.2843, allocations: 59.39 kB / 431.3 MB, free: 5.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.2846, allocations: 253.9 kB / 431.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.2846, allocations: 25.7 kB / 431.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.2847, allocations: 192.2 kB / 431.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.2848, allocations: 71.38 kB / 431.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.9e-05/0.2849, allocations: 45.94 kB / 431.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.285, allocations: 334.8 kB / 432.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.2852, allocations: 84.42 kB / 432.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.2854, allocations: 108.5 kB / 432.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.2858, allocations: 182.5 kB / 432.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2858, allocations: 0 / 432.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006938/0.2865, allocations: 330.8 kB / 432.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2865, allocations: 4 kB / 432.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2865, allocations: 3.938 kB / 432.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003008/0.2868, allocations: 73.67 kB / 432.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.287, allocations: 39.95 kB / 433 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.2896, allocations: 2.842 MB / 435.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.2898, allocations: 27.94 kB / 435.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2898, allocations: 8 kB / 435.8 MB, free: 0.8789 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.000149/0.2899, allocations: 141.9 kB / 436 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.29, allocations: 31.81 kB / 436 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.22e-05/0.29, allocations: 30.27 kB / 436 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2901, allocations: 4 kB / 436 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2901, allocations: 3.938 kB / 436 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2901, allocations: 4 kB / 436.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.2911, allocations: 0.6513 MB / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2911, allocations: 0 / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.2913, allocations: 28.17 kB / 436.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002036/0.2915, allocations: 81.66 kB / 436.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.2915, allocations: 4 kB / 436.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002416/0.2939, allocations: 2.837 MB / 439.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2939, allocations: 0 / 439.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006243/0.2945, allocations: 383.1 kB / 440 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.2946, allocations: 31.73 kB / 440.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.2946, allocations: 0 / 440.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.2949, allocations: 35.97 kB / 440.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.609e-05/0.2949, allocations: 23.95 kB / 440.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2949, allocations: 8 kB / 440.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.2951, allocations: 185.2 kB / 440.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2951, allocations: 0 / 440.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.2955, allocations: 95.83 kB / 440.4 MB, free: 11.99 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.0009527/0.2965, allocations: 0.9145 MB / 441.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007799/0.2972, allocations: 444.9 kB / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2972, allocations: 0 / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004461/0.2977, allocations: 340.6 kB / 442.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.2981, allocations: 54.88 kB / 442.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.3019, allocations: 2.711 MB / 444.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004339/0.3023, allocations: 0.7602 MB / 445.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.3024, allocations: 30.27 kB / 445.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3025, allocations: 91.41 kB / 445.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3025, allocations: 0 / 445.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04381/0.3463, allocations: 6.63 MB / 452.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.68, allocations: 7.797 kB / 452.4 MB, free: 15.98 MB / 366.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.10555198090151]