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.001294/0.001294, allocations: 113.2 kB / 20.43 MB, free: 1.309 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.001441/0.001441, allocations: 214.6 kB / 23.74 MB, free: 4.535 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.00234/0.00234, allocations: 47.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.29, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003453/0.2934, allocations: 1.929 MB / 433.1 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2957, allocations: 1.257 MB / 434.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.2958, allocations: 7.938 kB / 434.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.297, allocations: 0.5018 MB / 434.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.2973, allocations: 203.3 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.2978, allocations: 171.3 kB / 435.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004034/0.2982, allocations: 219.1 kB / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2983, allocations: 17.8 kB / 435.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.2986, allocations: 131.5 kB / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.2989, allocations: 231.4 kB / 435.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.2989, allocations: 8 kB / 435.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.2991, allocations: 67.91 kB / 435.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.2994, allocations: 263.3 kB / 436.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002889/0.2997, allocations: 273.9 kB / 436.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009723/0.3006, allocations: 0.771 MB / 437.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3007, allocations: 0 / 437.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3007, allocations: 0 / 437.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3007, allocations: 0 / 437.1 MB, free: 0.8242 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.002806/0.3035, allocations: 1.141 MB / 438.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3035, allocations: 16.02 kB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.778e-05/0.3036, allocations: 30.75 kB / 438.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.3037, allocations: 96.33 kB / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.3048, allocations: 0.6993 MB / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3048, allocations: 384 / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.3049, allocations: 4.375 kB / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.3052, allocations: 117.7 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3052, allocations: 4 kB / 439.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.3052, allocations: 0 / 439.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3052, allocations: 0 / 439.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003856/0.3056, allocations: 147.8 kB / 439.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.3068, allocations: 0.786 MB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.307, allocations: 90.5 kB / 440.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.3072, allocations: 76.89 kB / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.3072, allocations: 0 / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3072, allocations: 30.56 kB / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3072, allocations: 0 / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007992/0.308, allocations: 332.9 kB / 440.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.3081, allocations: 55.41 kB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/0.3099, allocations: 1.401 MB / 442.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3099, allocations: 29.7 kB / 442.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003649/0.3102, allocations: 388.4 kB / 442.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.3103, allocations: 7.953 kB / 442.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.3103, allocations: 25.64 kB / 442.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3105, allocations: 309.9 kB / 442.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.3107, allocations: 71.95 kB / 443 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.3108, allocations: 82.52 kB / 443 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.3112, allocations: 162.3 kB / 443.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.3112, allocations: 0 / 443.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005693/0.3118, allocations: 268.9 kB / 443.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3118, allocations: 4 kB / 443.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3118, allocations: 0 / 443.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3118, allocations: 4 kB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.312, allocations: 15.98 kB / 443.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.312, allocations: 4.094 kB / 443.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.3122, allocations: 15.94 kB / 443.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3122, allocations: 4 kB / 443.5 MB, free: 10.21 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.0003791/0.3126, allocations: 345.5 kB / 443.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.3127, allocations: 91.42 kB / 443.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006207/0.3134, allocations: 277.7 kB / 444.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3134, allocations: 0 / 444.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3134, allocations: 0 / 444.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3134, allocations: 0 / 444.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005831/0.314, allocations: 0.4939 MB / 444.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.314, allocations: 0 / 444.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.242e-05/0.314, allocations: 11.98 kB / 444.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3141, allocations: 4 kB / 444.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.3141, allocations: 4 kB / 444.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3141, allocations: 0 / 444.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3141, allocations: 0 / 444.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005233/0.3146, allocations: 327.2 kB / 445 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.315, allocations: 155.3 kB / 445.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.742e-05/0.315, allocations: 8 kB / 445.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.3152, allocations: 8 kB / 445.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.3153, allocations: 3.984 kB / 445.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.3153, allocations: 4 kB / 445.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.3166, allocations: 1.013 MB / 446.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3166, allocations: 0 / 446.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.317, allocations: 60 kB / 446.3 MB, free: 7.348 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.0009397/0.3179, allocations: 0.8641 MB / 447.2 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003784/0.3183, allocations: 127.9 kB / 447.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3183, allocations: 7.938 kB / 447.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.3184, allocations: 51.89 kB / 447.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000577/0.319, allocations: 110 kB / 447.4 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.3313, allocations: 8.787 MB / 456.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008285/0.3321, allocations: 1.001 MB / 457.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000695/0.3328, allocations: 474.3 kB / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004046/0.3332, allocations: 247.3 kB / 457.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3332, allocations: 0 / 457.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05562/0.3888, allocations: 16.29 MB / 474.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.99, allocations: 11.3 kB / 474.2 MB, free: 11.39 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.740512259071693]