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.001275/0.001275, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001475/0.001475, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 8.023 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 43.94 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.294, allocations: 53.37 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003311/0.2973, allocations: 1.928 MB / 433.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.2992, allocations: 1.273 MB / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.974e-05/0.2993, allocations: 0 / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.3003, allocations: 0.5113 MB / 435.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.3006, allocations: 199.4 kB / 435.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004408/0.301, allocations: 171.3 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.3014, allocations: 215.2 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.749e-05/0.3015, allocations: 13.73 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.3017, allocations: 135.5 kB / 436.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.302, allocations: 235.4 kB / 436.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.302, allocations: 8 kB / 436.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.3022, allocations: 59.97 kB / 436.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.3024, allocations: 263.2 kB / 436.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.3026, allocations: 285.9 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007922/0.3034, allocations: 0.7697 MB / 437.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3034, allocations: 0 / 437.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3034, allocations: 0 / 437.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3035, allocations: 0 / 437.9 MB, free: 0.8086 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002531/0.306, allocations: 1.141 MB / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.306, allocations: 8.031 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.575e-05/0.306, allocations: 192 / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.803e-05/0.3061, allocations: 34.75 kB / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3063, allocations: 96.31 kB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000988/0.3072, allocations: 0.7031 MB / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.3073, allocations: 384 / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.3073, allocations: 384 / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.3076, allocations: 125.5 kB / 440 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.3076, allocations: 0 / 440 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.3076, allocations: 0 / 440 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3076, allocations: 0 / 440 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.3079, allocations: 143.9 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.309, allocations: 0.7821 MB / 441 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.3092, allocations: 94.45 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.3094, allocations: 72.91 kB / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.3094, allocations: 0 / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3094, allocations: 30.56 kB / 441.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.3094, allocations: 0 / 441.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007969/0.3102, allocations: 328.9 kB / 441.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.3103, allocations: 59.34 kB / 441.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.3119, allocations: 1.405 MB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.3119, allocations: 25.7 kB / 443 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003351/0.3123, allocations: 388.4 kB / 443.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.3123, allocations: 3.953 kB / 443.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.3124, allocations: 25.7 kB / 443.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3125, allocations: 313.9 kB / 443.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.3127, allocations: 67.94 kB / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.3129, allocations: 90.45 kB / 443.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.3132, allocations: 158.4 kB / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3132, allocations: 0 / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005661/0.3138, allocations: 269.2 kB / 444.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3138, allocations: 4 kB / 444.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3138, allocations: 3.984 kB / 444.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3138, allocations: 4.094 kB / 444.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.314, allocations: 15.98 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.314, allocations: 4 kB / 444.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.3142, allocations: 19.94 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.3142, allocations: 3.984 kB / 444.3 MB, free: 10.2 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.0003359/0.3146, allocations: 337.6 kB / 444.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.3147, allocations: 95.42 kB / 444.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005983/0.3153, allocations: 277.4 kB / 445 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3153, allocations: 0 / 445 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3153, allocations: 0 / 445 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3153, allocations: 0 / 445 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005365/0.3159, allocations: 497.8 kB / 445.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3159, allocations: 0 / 445.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.316, allocations: 11.98 kB / 445.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.316, allocations: 4 kB / 445.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.316, allocations: 0 / 445.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.316, allocations: 0 / 445.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.316, allocations: 0 / 445.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.3165, allocations: 331.2 kB / 445.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/0.3168, allocations: 155.3 kB / 446 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.273e-05/0.3169, allocations: 0 / 446 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.317, allocations: 7.984 kB / 446 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.3171, allocations: 8.094 kB / 446 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3171, allocations: 7.969 kB / 446 MB, free: 8.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.3183, allocations: 1.013 MB / 447 MB, free: 7.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3183, allocations: 0 / 447 MB, free: 7.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.3187, allocations: 60 kB / 447.1 MB, free: 7.344 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.0009014/0.3196, allocations: 0.8681 MB / 447.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.3199, allocations: 127.8 kB / 448.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.32, allocations: 0 / 448.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3201, allocations: 55.95 kB / 448.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/0.3207, allocations: 113.3 kB / 448.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.3324, allocations: 8.791 MB / 457 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007169/0.3332, allocations: 0.9967 MB / 458 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006864/0.3338, allocations: 478.2 kB / 458.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003342/0.3342, allocations: 247.4 kB / 458.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3342, allocations: 0 / 458.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04427/0.3784, allocations: 16.32 MB / 475.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.79, allocations: 9.797 kB / 475.1 MB, free: 11.36 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.972105958964676]