Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001366/0.001366, 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.001528/0.001528, 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.489/1.489, 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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 47.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 53.33 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003497/0.1055, allocations: 1.928 MB / 428.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1075, allocations: 1.265 MB / 429.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.1076, allocations: 4 kB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1087, allocations: 0.5023 MB / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.109, allocations: 191.4 kB / 430.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.1094, allocations: 175.4 kB / 430.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.1098, allocations: 222.7 kB / 430.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.741e-05/0.1099, allocations: 13.69 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.1102, allocations: 127.5 kB / 430.7 MB, free: 396 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.1105, allocations: 231.4 kB / 430.9 MB, free: 164 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.1105, allocations: 8 kB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.1106, allocations: 67.89 kB / 431 MB, free: 88 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1888/0.2995, allocations: 263.5 kB / 431.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.2997, allocations: 277.8 kB / 431.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009475/0.3007, allocations: 0.7684 MB / 432.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3007, allocations: 0 / 432.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3007, allocations: 0 / 432.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3007, allocations: 0 / 432.3 MB, free: 7.746 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002415/0.3031, allocations: 1.209 MB / 433.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3032, allocations: 10.22 kB / 433.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.3032, allocations: 30.75 kB / 433.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.3034, allocations: 96.78 kB / 433.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008273/0.3042, allocations: 0.7566 MB / 434.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.3042, allocations: 3.844 kB / 434.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.3042, allocations: 5.344 kB / 434.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.3045, allocations: 122.1 kB / 434.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.3045, allocations: 1.156 kB / 434.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3045, allocations: 3.25 kB / 434.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3045, allocations: 1.125 kB / 434.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.3048, allocations: 143.8 kB / 434.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009806/0.3058, allocations: 0.8129 MB / 435.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.3061, allocations: 84.52 kB / 435.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.3062, allocations: 72.02 kB / 435.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.3063, allocations: 2.344 kB / 435.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.3063, allocations: 33.95 kB / 435.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3063, allocations: 5.125 kB / 435.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008148/0.3071, allocations: 331 kB / 436 MB, free: 6.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.3071, allocations: 52.25 kB / 436.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.3089, allocations: 1.406 MB / 437.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.3089, allocations: 26.98 kB / 437.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.3092, allocations: 391.5 kB / 437.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3092, allocations: 5.75 kB / 437.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.3093, allocations: 21.41 kB / 437.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.3093, allocations: 308 kB / 438.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.3095, allocations: 69.89 kB / 438.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3097, allocations: 84.47 kB / 438.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.31, allocations: 161.4 kB / 438.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.31, allocations: 0.6562 kB / 438.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005823/0.3106, allocations: 267.7 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3106, allocations: 5.188 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3106, allocations: 5.828 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3106, allocations: 1.281 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.3108, allocations: 14.09 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3108, allocations: 4.406 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.311, allocations: 17.86 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.311, allocations: 7.828 kB / 438.8 MB, free: 5.199 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003161/0.3114, allocations: 337 kB / 439.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.3115, allocations: 96.22 kB / 439.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006163/0.3122, allocations: 276.7 kB / 439.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.3122, allocations: 2.094 kB / 439.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3122, allocations: 5.219 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3122, allocations: 4.312 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.3128, allocations: 0.5082 MB / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3128, allocations: 2.641 kB / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.3129, allocations: 10.84 kB / 440.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3129, allocations: 2.188 kB / 440.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3129, allocations: 4.562 kB / 440.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3129, allocations: 1.375 kB / 440.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3129, allocations: 0 / 440.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.3134, allocations: 322.3 kB / 440.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.3136, allocations: 231.7 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.3137, allocations: 2.078 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.3139, allocations: 5.719 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.3139, allocations: 9.875 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.314, allocations: 6.016 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.3153, allocations: 1.018 MB / 441.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3153, allocations: 1.156 kB / 441.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.3157, allocations: 64.94 kB / 441.7 MB, free: 3.832 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007455/0.3165, allocations: 0.8673 MB / 442.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003849/0.3168, allocations: 122.6 kB / 442.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3168, allocations: 0 / 442.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.317, allocations: 53.55 kB / 442.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.3176, allocations: 101.1 kB / 442.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.3292, allocations: 8.793 MB / 451.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009412/0.3302, allocations: 0.9958 MB / 452.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008281/0.331, allocations: 474.3 kB / 453.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003847/0.3314, allocations: 249.4 kB / 453.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3314, allocations: 0 / 453.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04974/0.3811, allocations: 16.17 MB / 469.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.753/10.13, allocations: 4 kB / 469.5 MB, free: 4.754 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.929869586136192]