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.001243/0.001243, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001302/0.001302, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.403/1.403, 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.001511/0.001511, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09825, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004313/0.1026, allocations: 3.038 MB / 429.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.1039, allocations: 0.7595 MB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.104, allocations: 4 kB / 430.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.1042, allocations: 59.44 kB / 430.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.1043, allocations: 103 kB / 430.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.1047, allocations: 103.8 kB / 430.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004308/0.1051, allocations: 410.2 kB / 430.8 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.1053, allocations: 79.11 kB / 430.9 MB, free: 232 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.1055, allocations: 159.4 kB / 431 MB, free: 72 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1838/0.2893, allocations: 162.1 kB / 431.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.2894, allocations: 30.5 kB / 431.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.2896, allocations: 42.05 kB / 431.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.795e-05/0.2896, allocations: 69.58 kB / 431.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.2898, allocations: 177 kB / 431.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004231/0.2902, allocations: 399.1 kB / 431.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2902, allocations: 1.094 kB / 431.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2902, allocations: 0.7188 kB / 431.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.2902, allocations: 0 / 431.9 MB, free: 7.762 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.000873/0.2911, allocations: 0.6407 MB / 432.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2911, allocations: 10.31 kB / 432.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.066e-05/0.2912, allocations: 64.64 kB / 432.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.2914, allocations: 47.97 kB / 432.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.2917, allocations: 285.6 kB / 432.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.2917, allocations: 21.22 kB / 432.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.2918, allocations: 29.5 kB / 433 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004557/0.2922, allocations: 259.6 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2922, allocations: 0 / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.2923, allocations: 17.38 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2923, allocations: 8.469 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.2927, allocations: 213.2 kB / 433.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.2941, allocations: 0.9751 MB / 434.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004564/0.2945, allocations: 282.1 kB / 434.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.2947, allocations: 92.69 kB / 434.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2947, allocations: 2.219 kB / 434.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.455e-05/0.2947, allocations: 40.41 kB / 434.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.724e-06/0.2948, allocations: 1.078 kB / 434.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001171/0.2959, allocations: 0.5582 MB / 435.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.2959, allocations: 54.88 kB / 435.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.2962, allocations: 261.2 kB / 435.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.2962, allocations: 30.73 kB / 435.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.2963, allocations: 182.8 kB / 435.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.2963, allocations: 76.11 kB / 436 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.2964, allocations: 46.47 kB / 436 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.2964, allocations: 336.3 kB / 436.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.2966, allocations: 76.42 kB / 436.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.2968, allocations: 108.2 kB / 436.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.2972, allocations: 188.3 kB / 436.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2972, allocations: 1.281 kB / 436.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006037/0.2978, allocations: 324.3 kB / 437 MB, free: 5.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2978, allocations: 9.016 kB / 437.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2978, allocations: 0 / 437.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.2981, allocations: 77.02 kB / 437.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.2983, allocations: 37.55 kB / 437.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.2999, allocations: 3.053 MB / 440.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.3001, allocations: 28.09 kB / 440.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.3001, allocations: 10.03 kB / 440.3 MB, free: 2.516 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 9.912e-05/0.3002, allocations: 137.2 kB / 440.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.3003, allocations: 34.86 kB / 440.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/0.3003, allocations: 30.11 kB / 440.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3003, allocations: 3.219 kB / 440.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3003, allocations: 2.031 kB / 440.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3003, allocations: 1.312 kB / 440.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009233/0.3012, allocations: 0.6815 MB / 441.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3012, allocations: 1.812 kB / 441.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.3014, allocations: 30.67 kB / 441.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.3016, allocations: 77.2 kB / 441.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.3016, allocations: 6.031 kB / 441.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/0.3035, allocations: 3.039 MB / 444.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3035, allocations: 0 / 444.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000641/0.3041, allocations: 385.9 kB / 444.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.142e-05/0.3042, allocations: 105.7 kB / 444.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.3042, allocations: 2.844 kB / 444.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.3045, allocations: 37.66 kB / 444.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.3046, allocations: 20.09 kB / 444.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.3046, allocations: 4.219 kB / 444.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001932/0.3048, allocations: 192.6 kB / 445 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3048, allocations: 0 / 445 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.3052, allocations: 90.7 kB / 445.1 MB, free: 14.4 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.0009835/0.3061, allocations: 0.9246 MB / 446 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008487/0.307, allocations: 442.5 kB / 446.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.307, allocations: 1.125 kB / 446.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004717/0.3075, allocations: 337.6 kB / 446.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.3079, allocations: 46.72 kB / 446.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.3117, allocations: 2.708 MB / 449.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.3121, allocations: 0.765 MB / 450.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.3122, allocations: 25.34 kB / 450.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3124, allocations: 91 kB / 450.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3124, allocations: 0 / 450.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/0.3497, allocations: 6.512 MB / 456.9 MB, free: 9.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.16, allocations: 9.219 kB / 457 MB, free: 9.422 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.53644582699053]